Hi all Having a hard time booting my mini2440 via nfs. it gives me the following exception: Filename './uImage-mini2440' NFS failed: Permission denied I'm not sure whats going on, I read alot of posts on the internet that recommends i should change the bootcmd, but I dont have a parameter like that and setenv doesnt even work. any help would really be appreciated. thanks Ruben
Booting mini2440 via nfs
Have you read through the section in the OSELAS.BSP-Pengutronix-Mini2440-Quickstart.pdf guide? I thought you had done some work on NFS using this BSP but perhaps it was someone else. Likewise, I found setenv doesn't work but printenv does. Perhaps, it is a bootloader option. Which NFS server are you running and on which host Linux distro?
Hi Dave Thanks for replying. I previously used tftp on ubuntu 10.10, worked fine. So I got a new laptop with ubuntu 12.04 and I cant even seem to get tftp to mount the root, but the kernel boots. So I'm trying to use nfs for dev stuff, but cant get it working. Which section are you referring to in the doc? As far as I can see, I did everything according to the doc, but to no avail. :( My head's spinnig a bit, so any advice is deeply appreciated. Regards Ruben
Ruben, pay attention: TFTP != NFS To load the Linux kernel from your host into the Mini2440, TFTP is used. The TFTP client is your Mini2440, the TFTP server is your host. After the kernel is up an running it mounts its root filesystem. Now NFS is used. Your Mini2440 is also the client and your host once again the NFS server. You can use also NFS to download the kernel itself. You mentioned the "bootcmd", so it looks to me you are still using 'uboot' as the bootloader on your Mini2440. I'm not sure, how to configure 'uboot' to make it load the kernel via tftp or nfs.
My fault My nfs folder only had root permissions, its located in /var/lib/nfs, so i gave it permissions and now it loads the kernel (uImage-mini2440). Its not mounting the root yet, so i'm looking into it. I got a bit confused with all the setting up, so decided to kkep a journal. thanks Juergen.
I got it. kernel image resides in /var/lib/nfs, and root in /home/orbit/platform-mini2440/root. I love this stuff!
Hi all, I am trying to boot mini2440 via NFS followed Link http://wiki.iface.ch/index.php/Basic_rootfs_for_Mini2440 Getting below mentioned error Please suggest me some thing eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 IP-Config: Guessing netmask 255.0.0.0 IP-Config: Complete: device=eth0, addr=10.0.0.11, mask=255.0.0.0, gw=255.255.255.255, host=10.0.0.11, domain=, nis-domain=(none), bootserver=255.255.255.255, rootserver=10.0.0.4, rootpath= Looking up port of RPC 100003/2 on 10.0.0.4 Looking up port of RPC 100005/1 on 10.0.0.4 VFS: Mounted root (nfs filesystem) on device 0:14. Freeing init memory: 172K Warning: unable to open an initial console. Failed to execute /sbin/init. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel. [<c0039cf0>] (unwind_backtrace+0x0/0xd8) from [<c0352bac>] (panic+0x40/0x118) [<c0352bac>] (panic+0x40/0x118) from [<c00335bc>] (init_post+0xcc/0xf4) [<c00335bc>] (init_post+0xcc/0xf4) from [<c0008438>] (kernel_init+0xdc/0x10c) [<c0008438>] (kernel_init+0xdc/0x10c) from [<c0034e68>] (kernel_thread_exit+0x0/0x8)
> [...] "unable to open an initial console." > Failed to execute /sbin/init. [...] It mounts something via NFS, but it seems nothing useful. Configure your kernel to mount the correct exported root filesystem inside your host's filesystem.
There is nothing special with NFS root for the Mini2440. It always works in the same way: you have to export the NFS root directory at your host's filesystem and to mount this directory at your Mini2440. No magic.