Difference between revisions of "HIP:TS-7000:redboot"
(→Configuring RedBoot for NFS booting) |
(→Then Do the following:) |
||
Line 28: | Line 28: | ||
FORWARD_IPV4=no | FORWARD_IPV4=no | ||
− | == Then Do the following: == | + | === Then Do the following: === |
− | + | 1. Boot the board and press Ctrl+C | |
2. This should drop you into the RedBoot command line | 2. This should drop you into the RedBoot command line | ||
Line 36: | Line 36: | ||
3. "ifconfig -l" should display the current configurations, eg | 3. "ifconfig -l" should display the current configurations, eg | ||
− | RedBoot> fconfig -l | + | RedBoot> fconfig -l |
− | Run script at boot: true | + | Run script at boot: true |
− | Boot script: | + | Boot script: |
− | .. fis load vmlinux | + | .. fis load vmlinux |
− | .. exec -c "console=ttyAM0,115200 root=/dev/mtdblock1" | + | .. exec -c "console=ttyAM0,115200 root=/dev/mtdblock1" |
− | Boot script timeout (100ms resolution): 1 | + | Boot script timeout (100ms resolution): 1 |
− | Use BOOTP for network configuration: false | + | Use BOOTP for network configuration: false |
− | Gateway IP address: 192.168.0.11 | + | Gateway IP address: 192.168.0.11 |
− | Local IP address: 192.168.0.50 | + | Local IP address: 192.168.0.50 |
− | Local IP address mask: 255.255.255.0 | + | Local IP address mask: 255.255.255.0 |
− | Default server IP address: 192.168.0.11 | + | Default server IP address: 192.168.0.11 |
− | Network hardware address [MAC]: 0x0F:0x0F:0x0F:0x0F:0x0F:0x0F | + | Network hardware address [MAC]: 0x0F:0x0F:0x0F:0x0F:0x0F:0x0F |
− | GDB connection port: 9000 | + | GDB connection port: 9000 |
− | Force console for special debug messages: false | + | Force console for special debug messages: false |
− | Network debug at boot time: false | + | Network debug at boot time: false |
− | I would strongly suggest that you write/save the default configurations somewhere. | + | * I would strongly suggest that you write/save the default configurations somewhere. |
4. "ifconfig" allows you to edit the bootscript that RedBoot executes at boot time. | 4. "ifconfig" allows you to edit the bootscript that RedBoot executes at boot time. | ||
5. Leave the first line as it is, by hitting return. | 5. Leave the first line as it is, by hitting return. | ||
− | >> fis load vlinux | + | >> fis load vlinux |
6. Edit the next line to: | 6. Edit the next line to: | ||
− | >> exec -c "console=ttyAM0,115200 ip=dhcp nfsroot=[HOST IP]:[root path on host]" | + | >> exec -c "console=ttyAM0,115200 ip=dhcp nfsroot=[HOST IP]:[root path on host]" |
7. Terminate script with a blank line: | 7. Terminate script with a blank line: | ||
− | >> | + | >> |
− | 8. At this point, RedBoot will prompt for some values interactively, I would suggest you | + | 8. At this point, RedBoot will prompt for some values interactively, I would suggest you increase the "Boot script timeout" to some larger value like 10 (1s), this will give you more time to interrupt RedBoot using the Ctrl+C command. |
9. Leave all other values as they are, unless if you really want to change them. | 9. Leave all other values as they are, unless if you really want to change them. |
Revision as of 10:19, 24 May 2007
Configuring RedBoot for NFS booting
Note:
- If using minicom as your terminal emulator, make sure both hardware and software control are disabled...
- Boot the TS board normally, and then in /etc/sysconfig, edit these two files:
- file: "ifcfg-eth0"
DEVICE=eth0 #IPADDR=192.168.0.50 #NETMASK=255.255.255.0 #NETWORK=192.168.0.0 #BROADCAST=192.168.0.255 BOOTPROTO=static #BOOTPROTO=dhcp ENABLE=yes
- and file: "network_cfg"
### Technologic Systems General Network Configuration File ### NETWORKING=yes GATEWAY=192.168.0.1 GW_DEV=eth0 HOSTNAME="desired name" BOOTPROTO=dhcp DEFRAG_IPV4=no FORWARD_IPV4=no
Then Do the following:
1. Boot the board and press Ctrl+C
2. This should drop you into the RedBoot command line
3. "ifconfig -l" should display the current configurations, eg
RedBoot> fconfig -l Run script at boot: true Boot script: .. fis load vmlinux .. exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"
Boot script timeout (100ms resolution): 1 Use BOOTP for network configuration: false Gateway IP address: 192.168.0.11 Local IP address: 192.168.0.50 Local IP address mask: 255.255.255.0 Default server IP address: 192.168.0.11 Network hardware address [MAC]: 0x0F:0x0F:0x0F:0x0F:0x0F:0x0F GDB connection port: 9000 Force console for special debug messages: false Network debug at boot time: false
- I would strongly suggest that you write/save the default configurations somewhere.
4. "ifconfig" allows you to edit the bootscript that RedBoot executes at boot time.
5. Leave the first line as it is, by hitting return.
>> fis load vlinux
6. Edit the next line to:
>> exec -c "console=ttyAM0,115200 ip=dhcp nfsroot=[HOST IP]:[root path on host]"
7. Terminate script with a blank line:
>>
8. At this point, RedBoot will prompt for some values interactively, I would suggest you increase the "Boot script timeout" to some larger value like 10 (1s), this will give you more time to interrupt RedBoot using the Ctrl+C command.
9. Leave all other values as they are, unless if you really want to change them.
10. The final prompt will ask you to save the changes you made by entering y/n.
11. Reboot the board, it should mount root from the host and path specified in RedBoot.
12. If you experience boot errors, check your host configurations and NFS server configurations.