User`s manual
JampII-mini Users Manual - 20 - PD0606-6-00-01
6.7.3 Load Root File System
The default configuration of JampII-mini is using part of SDRAM as RAM disk for Linux
root file system. The ramdisk image must be stored in the on-board FLASH memory and loaded by
Redboot for the Linux kernel. The image must be loaded into dynamic memory before it can be stored
in the on board FLASH memory. To load the ramdisk file to SDRAM, enter the following commands at
the terminal console, immediately after entered the above serial download command, start X-Modem
transfer on the terminal program, the download process should start.
RedBoot> load -m x -b 0x01000000 -r
Raw file loaded 0x01000000-0x01301f61, assumed entry at 0x01000000
xyzModem - CRC mode, 24640(SOH)/0(STX)/0(CAN) packets, 3 retries
RedBoot>
The above commands will load ramdisk.gz file into on board SDRAM. To store the image into
non-volatile FLASH memory, use the following command,
RedBoot> fis create initrd -b 0x01000000 -l 0x400000
... Erase from 0x60200000-0x60600000: ................................
... Program from 0x01000000-0x01400000 at 0x60200000: ..........................
......
... Erase from 0x607e0000-0x60800000: .
... Program from 0x01fdf000-0x01fff000 at 0x607e0000: .
RedBoot>
6.7.4 Boot script
After load kernel and root file system into flash. You can set boot-script for boot-up to Linux.
RedBoot> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load initrd
>> fis load zImage
>> exec -r 0x01000000 -s 0x400000 -c "console=ttyAM0,57600 root=/dev/ram rw"
>>
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
Gateway IP address: 192.168.11.254
Local IP address: 192.168.11.250
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.11.100
DNS server IP address: 192.168.11.254
Set eth0 network hardware address [MAC]: true
eth0 network hardware address [MAC]: 0x00:0x00:0x00:0x00:0xCC:0x33
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
RedBoot>
Multiple kernel images or root file systems can be stored in the on-board FLASH memory when
memory space permits.
6.8. Compile Redboot