|
|
Caution
Your data will be destroied when booting Linux, so please backup the data
first.
Usage guide
-
Downloading bootloader(cyace or hpcboot), Root File System Image,
vmlinux and linux-modules for your model from
sourceforge project page.
-
Repartition your CF card(at least 32M), make a FAT file system(>=16M)
in the first partition and a EXT3 file system(>= 16M) in the second
partition. They will be /dev/sdX1 and /dev/sdX2 if you use the usb card
reader under Linux.
-
Copy the bootloader and vmlinux to the first partition, untar the root
file system image and linux-modules into the second partition.
-
Plug the CF card into your device, turn on the power, invoke the
bootloader under Windows CE (the bootloader is a Windows CE application
in fact) to boot the Linux.
Developer's guild
-
Download the bootloader(cyace or hpcboot), buildroot, kernel patches
and linux-kernel-initramfs-builder
for your model from
sourceforge project page.
-
Download the stock linux kernel source code from
http://www.kernel.org/pub/linux/kernel. The kernel version should
match the kernel patch version.
-
Unpack stock kernel source code and kernel patches, and apply kernel
patches to the source code of stock kernel.
-
Use buildroot to build the cross toolchain and root file system image.
-
Unpack linux-kernel-initramfs-builder in the same folder of linux kernel
source, execute "make" in unpacked folder to generate initramfs.
-
Build the kernel with the cross toolchian built by buildroot.
-
Follow the usage guild to boot your device with root file system
image and kernel image built.
Use TFTP enabled cyace to download Linux kernel image automatically
MCR7X0 (MP8X0) has some built-in PCMCIA ethernet drivers, such as
NEC PC-9801n-J12 which is a NE2000 compatible ethernet device. So
these PCMCIA ethernet cards can be used immediately even after hard
reset.
I added the TFTP client function into cyace, now the linux kernel
images can be downloaded from development host without tedious
unplug/plug CF card. Enjoy it!
The steps to use it.
-
Get a PCMCIA ethernet card with MCR7X0 (MP8X0) built-in
support. If you are in China, you can get it from
www.taobao.com.
-
Download latest cyace from the sourceforge project page of this
project. And install it to your CF storage card.
-
In cyacecfg.txt, add a line like following:
tftp=<development host ip>
where the <development host ip> should be substituted with
your real devlopment host ip.
-
Install and configure DHCP server in your LAN.
-
Install and configure TFTP server in your development host.
-
Plug your PCMCIA ethernet card into your PCMCIA slot of MCR7X0
(MP8X0), and hit enter when a dialog popup.
-
Plug your CF storage card and use cyace to load Linux as usual,
but now the Linux kernel image will be downloaded automatically.
|