I,
1 : Create a cramfs filesystem with the right endianess from your nfs
filesystem using mkcramfs.
Burn it into the flash( at the start of the flash).
2 : In your kernel config set the "root=" option to : "/dev/mtdblock0"
Enable Flash MTDBlock support and the right options like CFI,...
Set up the start of the flash and its length
Enable Cramfs in filesystem
Disable NFS as root filesystem.
Rebuild your kernel and flash it.
Reboot the board en enjoy.
PS : This question was already a 100 times answered. Search in the mailing
list before asking such a question.
Or maybe a better idea : One may build a FAQ or a list of Howtos on such
common questions.
Benoit Callebaut
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi,
I'm trying to reverse-engineer a "home gateway" - used for a home
automation project I worked on. It currently runs VxWorks, but I'd like to
see if I can port Linux to it. From what I can tell, it's an XPC860 with
two serial ports, a USB port, a FEC and an Rs-485 port. It has two FLASH
chips and two RAM chips - probably 32MB of each.
First of all, I need to replace the VxWorks boot loader with U-Boot.
I have the VxWorks loader capable of loading files from my computer via ftp,
but the Linux kernel requires virtual memory support, which the boot loader
doesn't have. I've looked everywhere for "vxhack.c" and all the ftp sites
are gone.
After that, I need to set up a development environment. I have the
ppc kernel source, but I'm not able to get libc and u-boot to compile.
Should I give up and just use the ELDK? Also, what JTAG Emulators and
programmers do you use that are compatible with Linux and MPC8xx?
Thanks in advance,
Mark
P.S. I did search the list and read the FAQ.
P.P.S. If someone is willing to walk me through this reverse-engineering
process, I'd be willing to write it up as a "process" FAQ. I've found some
pretty useful tools already for decompiling the kernel code.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
----- Original Message -----
From: "Callebaut Benoit" <redacted>
To: "linuxppc-embedded mailing list" <redacted>
Sent: Thursday, June 12, 2003 5:33 PM
Subject: RE :how to do:root filesystem on flash?
I,
1 : Create a cramfs filesystem with the right endianess from your nfs
filesystem using mkcramfs.
Burn it into the flash( at the start of the flash).
Is it must be burned from the start of the flash? My u-boot bin code is
burned at the start of the flash.
2 : In your kernel config set the "root=" option to : "/dev/mtdblock0"
In my system, the flash is registered as /dev/flasha, should i pass the
parameter "root=/dev/flasha" to kernel?
Enable Flash MTDBlock support and the right options like CFI,...
Set up the start of the flash and its length
Enable Cramfs in filesystem
Disable NFS as root filesystem.
Rebuild your kernel and flash it.
Reboot the board en enjoy.
PS : This question was already a 100 times answered. Search in the mailing
list before asking such a question.
Or maybe a better idea : One may build a FAQ or a list of Howtos on such
common questions.
Benoit Callebaut
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/