From: Ilan Pollak (ilanp@galileo.co.il)
Date: Tue Jul 23 2002 - 04:31:56 EDT
Hi Greg, I use the 20010315 release of arm-elf-tools and genromfs 0.5.1. maybe i'm missing something i should have checked into the kernel while xconfiguring ? another thought: Maybe i can mount a filesystem from the net, instead reading from the flash ? any other suggestions ? thanks for the help you gave until now ! you're doing a great work. ilan. Greg Ungerer wrote: > Hi Ilan, > > Ilan Pollak wrote: > >> I've built uClinux from the 20020701 distribution on AT91 (Atmel on >> EB40LS). >> Everything seems to work great, until the point uClinux tries to >> execve the /sbin/init. >> Then it fails gets to the 'panic' line. >> I have an /sbin/init file in my romdisk.img created by the 'genromfs >> -v -V "ROM Disk" -f romdisk.img -d romdisk 2> romdisk.map' command. >> I've also tried cat-ting the 'romfs' out of the distribution's >> 'images' directory. >> You can see that uClinux mounts the romfs alright (by the address and >> the size i see on screen). >> however execve sets 'errno' to say: "filename points outside your >> accessible address space". >> i've also did 'mount -r -o loop -t romfs romfs.img /mnt/romfs' and i >> found there sbin/init and bin/sh >> any ideas ? > > > What tool chain did you use? > > The problem with the console is usually because you are > using an older genromfs that cannot create device nodes using > the @ notation. Check what genromfs you are using. > > Regards > Greg > > > >> >> here's the console's output: >> ... >> Kernel command line: root=/dev/rom0 >> Calibrating delay loop... 2.68 BogoMIPS >> Memory: 2MB = 2MB total >> Memory: 1772KB available (818K code, 35K data, 36K init) >> Dentry-cache hash table entries: 512 (order: 0, 4096 bytes) >> Inode-cache hash table entries: 512 (order: 0, 4096 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: 1024 (order: 0, 4096 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 >> Atmel USART driver version 0.99 >> ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART >> ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART >> block: 64 slots per queue, batch=16 >> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize >> cs89x0:cs89x0_probe(0x0) >> cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew >> Morton <andrewm@uow.edu.au> >> eth0: cs8920 rev A found at 0x300 >> cs89x0 media RJ-45, IRQ 0, programmed I/O, MAC 00:00:00:00:00:00 >> <--- suspicious, but that's another issue, for another mail... >> cs89x0_probe1() successful >> Blkmem copyright 1998,1999 D. Jeff Dionne >> Blkmem copyright 1998 Kenneth Albanowski >> Blkmem 1 disk images: >> 0: 30EE74C-319374B [VIRTUAL 30EE74C-319374B] (RO) <--- here's the >> romfs... >> 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 512 bind 512) >> VFS: Mounted root (romfs filesystem) readonly. >> <--- uClinux says it's mounted, I tend to believe :-) >> Warning: unable to open an initial >> console. <--- oh oh !! first >> failiure ... >> Kernel panic: No init found. Try passing init= option to >> kernel. <--- final panic ! >> >> Please, help me out here, >> thanks again, >> ilan. >> >> This message resent by the uclinux-dev@uclinux.org list server >> http://www.uClinux.org/ > This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:35 EDT