GUF-Yocto-34.0-r5756-0
VINCELL
User Manual
9
Deploying the Linux system to the target
When the development phase has finished, the kernel and the root file system can be written into the system’s
NAND flash memory and executed from there.
In chapter
[
I
8.3 Building the BSP for the target platform with Yocto]
we created two image files:
zImage-vincell.bin
guf-image-vincell.ubi
The same must be done with the
zImage-vincell.bin
and the
guf-image-vincell.ubi
files to your TFTP directory:
$ cp tmp/deploy/images/vincell/zImage-vincell.bin /tftpboot
$ cp tmp/deploy/images/vincell/guf-image-vincell.ubi /tftpboot
To write the images to the system flash memory, connect a serial console to the target as descriped in
[
I
, re-power your target and interrupt the boot loader RedBoot with
Ctrl+C
for having access to its
console:
RedBoot>
You can list the current partition layout by typing:
RedBoot> fis list
... Read from 0x800c5008-0x800d5008 at 0xe0080000:
.
Name
FLASH addr
Mem addr
Length
Entry point
RedBoot
0xE0000000
0xE0000000
0x00080000
0x00000000
Redundant FIS
0xE0080000
0xE0080000
0x00040000
0x00000000 current
FIS directory
0xE00C0000
0xE00C0000
0x00040000
0x00000000 backup
logo.png
0xE0100000
0x80100000
0x00020000
0x80100000
kernel
0xE0120000
0x80100000
0x00A00000
0x80100000
rootfs
0xE0B20000
0x80100000
0x0BA00000
0x80100000
Remove the old kernel and root file system partition if a previous Linux system is installed:
RedBoot> fis delete kernel
[...]
RedBoot> fis delete rootfs
[...]
If a Windows CE was pre-installed remove the
OS
and
FlashDisk
partition:
RedBoot> fis delete OS
[...]
RedBoot> fis delete FlashDisk
[...]
There may exist other partitions, which most probably should be removed before installing Linux. The only
essential partitions which must not be deleted are
RedBoot
,
FIS directory
,
Redundant FIS
and
logo.png
.
Now we can load the kernel image from the TFTP server to the target RAM:
RedBoot> load -r -v -b 0x80100000 -h 192.168.1.100 linuximage
If the image file has successfully been loaded we can create a kernel flash partition out of it:
RedBoot> fis create -b 0x80100000 -l 0x600000 -e 0x80100000 -r 0x80100000 kernel
If the system asks you to increment the length of the image due to the occurance of bad blocks then select
y
.
The same can be done with the root file system image:
47