Copyright © 2013 IBASE Technology Inc. All Rights Reserved.
37
IBASE Technology Inc.
4.1.5.
Build RAMdisk image (option.)
** RAMdisk image depend on need, not necessary **
After kernel module files install into ~/IB113_BSP/linux/rootfs/, copy kernel modules define, and
kernel module files into ~/IB113_BSP/linux/ramfs/, file struct same as ~/IB113_BSP/linux/rootfs/
Example:
root@u1004x64:~/IB113_BSP/linux/ramfs# tree lib/modules/3.0.35/
lib/modules/3.0.35/
├──
build -> /root/EL_IB112/ib113-linux/linux-3.0.35
├──
kernel
│
├──
drivers
│
│
├──
ata
│
│
│
├──
ahci.ko
│
│
│
└──
ata_generic.ko
Todo packaged RAMdisk files into RAMdisk cpio image ~/IB113_BSP/linux/IMG/ramfs.bin :
./img.sh
root@u1004x64:~/IB113_BSP/linux#
./img.sh
14344 blocks
root@u1004x64:~/IB113_BSP/linux#
Todo packaged RAMdisk ans zImage images into kernel image for u-boot using
~/IB113_BSP/linux/IMG/113linux.img :
./fimg.sh
root@u1004x64:~/IB113_BSP/linux#
./fimg.sh
image size 7MiB
7+0 records in
7+0 records out
7340032 bytes (7.3 MB) copied, 0.00492305 s, 1.5 GB/s
13028+0 records in
13028+0 records out
6670336 bytes (6.7 MB) copied, 0.128988 s, 51.7 MB/s
root@u1004x64:~/IB113_BSP/linux#