ich habe massive Probleme beim Erstellen von 1xI-Images.
Meine Sagem 1xI ist nicht defekt, da auch ein selbstkompiliertes Yadi einwandfrei funktioniert - somit sollte auch die Umgebung stimmen, sprich mkfs.jffs2-Version, etc..
Meine Nokia's 2xI haben keinerlei Probleme und ich weiss z.Z. einfach nicht weiter.
Anbei mal alle geänderten Dateien, sowie das Sagem-1xI-Boot-Log.
Für jede Hilfe bin ich absolut dankbar.
dbox2-flash.c:
Code: Alles auswählen
static struct mtd_partition partition_info[]= {
{
.name = "BR bootloader",
.size = 128 * 1024,
.offset = 0,
.mask_flags = MTD_WRITEABLE
},
{
.name = "root (squashfs)",
.size = 3968 * 1024,
.offset = MTDPART_OFS_APPEND,
.mask_flags = 0
},
{
.name = "var (jffs2)",
.size = 3968 * 1024,
.offset = MTDPART_OFS_APPEND,
.mask_flags = 0
},
{
.name = "flfs (u-boot)",
.size = 128 * 1024,
.offset = MTDPART_OFS_APPEND,
.mask_flags = 0
},
{
.name = "flash without bootloader",
.size = MTDPART_SIZ_FULL,
.offset = 128 * 1024,
.mask_flags = 0
},
{
.name = "complete flash",
.size = MTDPART_SIZ_FULL,
.offset = 0,
.mask_flags = MTD_WRITEABLE
}
};
Code: Alles auswählen
my %partdef =
(
0 => [ "root", 0, 0x3E0000 ],
1 => [ "var", 0x3E0000, 0x3E0000 ],
2 => [ "ppcboot", 0x7c0000, 0x20000 ],
);
Code: Alles auswählen
#define CONFIG_BOOTCOMMAND \
"setenv bootargs console=$(console) root=/dev/mtdblock1 rootfstype=squashfs; \
fsload; protect off 10020000 107fffff; bootm"
#define CONFIG_EXTRA_ENV_SETTINGS \
"console=ttyS0\0"
#define CONFIG_BAUDRATE 9600 /* console baudrate = 9.6kbps */
#undef CFG_LOADS_BAUD_CHANGE /* don't allow baudrate change */
#define CONFIG_WATCHDOG 1 /* watchdog enabled */
#define CONFIG_BOOTP_MASK ( CONFIG_BOOTP_DEFAULT | CONFIG_BOOTP_VENDOREX )
#define CONFIG_COMMANDS ( CONFIG_CMD_DFL | CFG_CMD_FS | CFG_CMD_DHCP )
#define CONFIG_FS ( CFG_FS_SQUASHFS | CFG_FS_JFFS2 )
#define CFG_FS_PART0_TYPE CFG_FS_SQUASHFS
#define CFG_FS_PART0_OFFSET 0x10020000
#define CFG_FS_PART0_SIZE 0x3E0000
#define CFG_FS_PART1_TYPE CFG_FS_JFFS2
#define CFG_FS_PART1_OFFSET 0x10400000
#define CFG_FS_PART1_SIZE 0x3E0000
Code: Alles auswählen
debug: DDF: Calibrating delay loop... debug: DDF: 66.76 BogoMIPS
debug: BMon V1.2 mID 03
debug: feID 00 enxID 03
debug: fpID 52 dsID 47.11.07.00.00-da
debug: HWrev 21 FPrev 0.23
debug: B/Ex/Fl(MB) 32/00/08
WATCHDOG reset enabled
dbox2:root> debug:
BOOTP/TFTP bootstrap loader (v0.3)
debug:
debug: Transmitting BOOTP request via broadcast
debug: Given up BOOTP/TFTP boot
boot net failed
Flash-FS bootstrap loader (v1.5)
Found Flash-FS superblock version 3.1
Found file /root/platform/sagem-dbox2/kernel/os in Flash-FS
debug: Got Block #0040
will verify ELF image, start= 0x800000, size= 160684
verify sig: 263
Branching to 0x40000
U-Boot 1.1.2 (Tuxbox) (Mar 20 2005 - 08:52:16)
CPU: PPC823ZTnnB2 at 66 MHz: 2 kB I-Cache 1 kB D-Cache
Board: DBOX2, Sagem, BMon V1.2
Watchdog enabled
I2C: ready
DRAM: 32 MB
FLASH: 8 MB
Scanning JFFS2 FS: ... done.
FB: ready
LCD: ready
In: serial
Out: serial
Err: serial
Net: SCC ETHERNET
Options:
1: Console on null
2: Console on ttyS0
3: Console on framebuffer
Select option (1-3), other keys to stop autoboot: 0
### FS (squashfs) loading 'vmlinuz' to 0x100000
### FS load complete: 623086 bytes loaded to 0x100000
...............................................................
Un-Protected 63 sectors
## Booting image at 00100000 ...
Image Name: dbox2
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 623022 Bytes = 608.4 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.4.27-dbox2 (neutrino@pingu) (gcc version 3.3.5) #30 So Mr 20
08:53:13 CET 2005
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0 root=/dev/mtdblock1 rootfstype=squashfs
Decrementer Frequency = 247500000/60
m8xx_wdt: active wdt found (SWTC: 0xFFFF, SWP: 0x1)
m8xx_wdt: keep-alive trigger installed (PITC: 0x2580)
Console: colour dummy device 80x25
Calibrating delay loop... 65.74 BogoMIPS
Memory: 30912k available (1060k kernel code, 336k data, 60k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Squashfs 2.1-r2 (released 2004/12/15) (C) 2002-2004 Phillip Lougher
i2c-core.o: i2c core module version 2.6.1 (20010830)
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
CPM UART driver version 0.04
ttyS0 at 0x0280 is on SMC1 using BRGttyS1 at 0x0380 is on SMC2 using BRG2
pty: 256 Unix98 ptys configured
eth0: CPM ENET Version 0.2.dbox2 on SCC2, 00:50:9c:32:1a:45
D-Box 2 flash driver (size->0x800000 mem->0x10000000)
CFI: Found no D-Box 2 flash memory device at location zero
D-Box 2 flash memory: Found 1 x16 devices at 0x0 in 16-bit mode
Intel/Sharp Extended Query Table at 0x0031
cfi_cmdset_0001: Erase suspend on write enabled
Using buffer write method
Creating 6 MTD partitions on "D-Box 2 flash memory":
0x00000000-0x00020000 : "BR bootloader"
0x00020000-0x00420000 : "root (squashfs)"
0x00420000-0x007e0000 : "var (jffs2)"
0x007e0000-0x00800000 : "flfs (u-boot)"
0x00020000-0x00800000 : "flash without bootloader"
0x00000000-0x00800000 : "complete flash"
Linux video capture interface: v1.00
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 60k init
Starting pid 10, console /dev/console: '/etc/init.d/rcS'ti-call b
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340000: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340004: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340008: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0034000c: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340010: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340014: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340018: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0034001c: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340020: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00340024: 0x5555 in
stead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360000: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360004: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360008: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0036000c: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360010: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360014: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360018: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0036001c: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360020: 0x5555 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00360024: 0x5555 in
stead
Further such events for this erase block will not be printed
Using /lib/modules/2.4.27-dbox2/misc/event.o
event: $Id: event.c,v 1.12 2003/09/30 05:45:38 obi Exp $
Using /lib/modules/2.4.27-dbox2/misc/tuxbox.o
Using /lib/modules/2.4.27-dbox2/misc/dvb-core.o
Chip reports voltage low on erase: status 0xa8
Erase at 0x00340000 failed immediately: errno -5
Using /lib/modules/2.4.27-dbox2/misc/dbox2_i2c.o
[i2c-8xx]: mpc 8xx i2c init
[i2c-8xx]: adapter: 0
Using /lib/modules/2.4.27-dbox2/misc/dbox2_fp.o
Beim ersten Start ist alles einwandfrei.
Bitte um Hilfe...
Euch allen ein frohes Osterfest