neues Dateisystem UBIFS für Flashspeicher

Sklaventreiber
FlatTV
Einsteiger
Einsteiger
Beiträge: 110
Registriert: Freitag 9. Januar 2009, 18:22

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von FlatTV »

Mein Kompilat ist nicht bootfähig.
Darum habe ich dietmarw's flash-neutrino-jffs2_lzma_klzma-all zum Vergleich genommen - Fehler ist identisch

Code: Alles auswählen

Found Flash-FS superblock version 3.1
Found file /root/platform/nokia-dbox2/kernel/os in Flash-FS
debug: Got Block #0036

will verify ELF image, start= 0x800000, size= 171328
verify sig: 262
Branching to 0x40000


U-Boot 2009.08 (Tuxbox) (Aug 05 2009 - 14:36:40)

CPU:   PPC823ZTnnA at 67.200 MHz: 2 kB I-Cache 1 kB D-Cache
         *** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
Board: DBOX2, Nokia, BMon V1.0
       Watchdog enabled
I2C:   ready
DRAM:  32 MB
FLASH:  8 MB
Scanning JFFS2 FS: ...... done.
find_inode failed for name=boot.conf
load: Failed to find inode
FB:    ready
Net:   SCC ETHERNET
LCD:   ready

Options:
  1: Console on null
  2: Console on ttyS0
  3: Console on framebuffer
Select option (1-3), other keys to stop autoboot:  0
............................................................... done
Un-Protected 63 sectors
### FS (jffs2) loading 'vmlinuz' to 0x200000
### FS load complete: 506961 bytes loaded to 0x200000
## Booting kernel from Legacy Image at 00200000 ...
   Image Name:   Linux-2.4.37.2-dbox2
   Image Type:   PowerPC Linux Kernel Image (lzma compressed)
   Data Size:    506897 Bytes = 495 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.4.37.2-dbox2 (dietmarw@s2.dvdvd.de) (gcc version 3.4.6) #2 Mi 5.
 Aug 15:12:00 CEST 2009
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 console=ttyS0,9600
dbox_duplex=
Decrementer Frequency = 252000000/60
m8xx_wdt: active wdt found (SWTC: 0xFFFF, SWP: 0x1)
m8xx_wdt: keep-alive trigger installed (PITC: 0x12C0)
Console: colour dummy device 80x25
Calibrating delay loop... 66.96 BogoMIPS
Memory: 30832k available (1136k kernel code, 340k 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. (NAND) (C) 2001-2003 Red Hat, Inc.
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
half-duplex mode enabled
eth0: CPM ENET Version 0.2.dbox2 on SCC2, 00:50:9c:1c:e2:9b
loop: loaded (max 8 devices)
D-Box 2 flash driver (size->0x800000 mem->0x10000000)
D-Box 2 flash memory: Found 2 x16 devices at 0x0 in 32-bit bank
 Intel/Sharp Extended Query Table at 0x0035
cfi_cmdset_0001: Erase suspend on write enabled
Creating 5 MTD partitions on "D-Box 2 flash memory":
0x00000000-0x00020000 : "BR bootloader"
0x00020000-0x00040000 : "FLFS (U-Boot)"
0x00040000-0x00800000 : "root (jffs2+lzma)"
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 (jffs2 filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing unused kernel memory: 60k init
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to kernel.
 <0>Rebooting in 180 seconds..
cu FlatTV
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von rhabarber1848 »

Hm, ein selbstkompiliertes Image bootet hier:

Code: Alles auswählen

Un-Protected 63 sectors
### FS (jffs2) loading 'vmlinuz' to 0x200000
### FS load complete: 501694 bytes loaded to 0x200000
## Booting kernel from Legacy Image at 00200000 ...
   Image Name:   Linux-2.4.37.2-dbox2
   Image Type:   PowerPC Linux Kernel Image (lzma compressed)
   Data Size:    501630 Bytes = 489.9 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.4.37.2-dbox2 (root@dbox) (gcc version 3.4.6) #2 Mi 5. Aug 20:47:01 CEST 2009
[...]
Creating 5 MTD partitions on "D-Box 2 flash memory":
0x00000000-0x00020000 : "BR bootloader"
0x00020000-0x00040000 : "FLFS (U-Boot)"
0x00040000-0x00800000 : "root (jffs2+lzma)"
0x00020000-0x00800000 : "Flash without bootloader"
0x00000000-0x00800000 : "Complete Flash"
[...]
VFS: Mounted root (jffs2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 60k init
init started: BusyBox v1.14.3 (2009-08-05 20:02:06 CEST)
starting pid 9, tty '': '/etc/init.d/rcS'
Mehr als vorzuschlagen, einen CVS checkout in ein leeres Verzeichnis
zu machen, nur jffs2_lzma.diff anzuwenden und nochmal das Image
zu flashen/booten, kann ich im Moment nicht anbieten.
So wird dietmarw neutrino-jffs2_lzma_klzma.img2x gebaut haben,
was bei mir auch nicht bootet, deshalb bin ich ein wenig ratlos im Moment.
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von Houdini »

mount_devfs_fs(): unable to mount devfs, err: -2

Code: Alles auswählen

#define ENOENT           2      /* No such file or directory */
seife
Developer
Beiträge: 4189
Registriert: Sonntag 2. November 2003, 12:36

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von seife »

Sprich: da scheint das "/dev"-Verzeichnis zu fehlen.
dietmarw
Contributor
Beiträge: 1833
Registriert: Mittwoch 10. April 2002, 15:39
Kontaktdaten:

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von dietmarw »

rhabarber1848 hat geschrieben:...
Mehr als vorzuschlagen, einen CVS checkout in ein leeres Verzeichnis
zu machen, nur jffs2_lzma.diff anzuwenden und nochmal das Image
zu flashen/booten, kann ich im Moment nicht anbieten.
So wird dietmarw neutrino-jffs2_lzma_klzma.img2x gebaut haben,
was bei mir auch nicht bootet, deshalb bin ich ein wenig ratlos im Moment.
korrekt
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von rhabarber1848 »

@dietmarw: Dennoch ist mit dem Image irgendwas nicht in Ordnung.
Ich habe ein Yadd gebootet, dass mit cdk/configure --with-flashfstype=jffs2
kompiliert wurde. Der Yadd-Kernel beinhaltet seit gestern im CVS LZMA-Support
für JFFS2. Damit habe ich Dein Image untersucht, dass ich vorher geflasht habe.
~ # cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00004000 "BR bootloader"
mtd1: 00020000 00020000 "FLFS (U-Boot)"
mtd2: 007c0000 00020000 "root (jffs2)"
mtd3: 007e0000 00020000 "Flash without bootloader"
mtd4: 00800000 00020000 "Complete Flash"

Code: Alles auswählen

mount /dev/mtdblock/2 /mnt -t jffs2
ls -la /mnt
drwxr-xr-x    9 root     root            0 Jan  1 01:00 .
drwxr-xr-x   16 root     root          408 Aug  6  2009 ..
drwxr-xr-x    2 1009     100             0 Aug  5  2009 bin
drwxr-xr-x    4 1009     100             0 Aug  5  2009 etc
drwxr-xr-x    3 1009     100             0 Aug  5  2009 lib
drwxr-xr-x    2 1009     100             0 Aug  5  2009 sbin
drwxr-xr-x    6 1009     100             0 Aug  5  2009 share
drwxr-xr-x    6 1009     100             0 Aug  5  2009 var
-rw-r--r--    1 1009     100        506961 Aug  5  2009 vmlinuz
~ # ls -la /mnt/bin
drwxr-xr-x    2 1009     100             0 Aug  5  2009 .
drwxr-xr-x    9 root     root            0 Jan  1 01:00 ..
-rwxr-xr-x    1 1009     100         13836 Aug  5  2009 controldc
-rwxr-xr-x    1 1009     100       1533004 Aug  5  2009 neutrino
-rwxr-xr-x    1 1009     100        440248 Aug  5  2009 nhttpd
-rwxr-xr-x    1 1009     100         26176 Aug  5  2009 pzapit
-rwxr-xr-x    1 1009     100        264308 Aug  5  2009 sectionsd
-rwxr-xr-x    1 1009     100         12588 Aug  5  2009 sectionsdcontrol
-rwxr-xr-x    1 1009     100         89372 Aug  5  2009 timerd
-rwxr-xr-x    1 1009     100        150196 Aug  5  2009 zapit
~ #
Es fehlt /dev, busybox und noch einiges anderes mehr im Image...
FlatTV
Einsteiger
Einsteiger
Beiträge: 110
Registriert: Freitag 9. Januar 2009, 18:22

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von FlatTV »

Ich habe dann einmal kräftig aufgeräumt und mich auf das wesentliche konzentriert :roll:

Code: Alles auswählen

Un-Protected 63 sectors
### FS (jffs2) loading 'vmlinuz' to 0x200000
### FS load complete: 506661 bytes loaded to 0x200000
## Booting kernel from Legacy Image at 00200000 ...
   Image Name:   Linux-2.4.37.2-dbox2
   Image Type:   PowerPC Linux Kernel Image (lzma compressed)
   Data Size:    506597 Bytes = 494.7 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.4.37.2-dbox2 (FlatTV@develop) (gcc version 3.4.6) #1 Do 6. Aug 20:41:19 CEST 2009
...
Creating 5 MTD partitions on "D-Box 2 flash memory":
0x00000000-0x00020000 : "BR bootloader"
0x00020000-0x00040000 : "FLFS (U-Boot)"
0x00040000-0x00800000 : "root (jffs2+lzma)"
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 (jffs2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 60k init
init started: BusyBox v1.14.3 (2009-08-06 20:36:20 CEST)
starting pid 9, tty '': '/etc/init.d/rcS'
flash-neutrino-jffs2_lzma_klzma-all erfolgreich erstellt

Sorry, war mein Fehler :dash:

cu FlatTV
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 14:05

Re: neues Dateisystem UBIFS für Flashspeicher

Beitrag von rhabarber1848 »

FlatTV hat geschrieben:flash-neutrino-jffs2_lzma_klzma-all erfolgreich erstellt
Dann ab damit ins CVS :D
Antworten