Difference between revisions of "HIP:TS-7000:redboot"

From Earlham CS Department
Jump to navigation Jump to search
(Configuring RedBoot for NFS booting)
(Then Do the following:)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Configuring RedBoot for NFS booting ==
 
== Configuring RedBoot for NFS booting ==
 
=== Note: ===
 
=== Note: ===
* If using minicom as your terminal emulator, make sure both hardware and software control are disabled...
+
* If using minicom as your terminal emulator, make sure both hardware and software flow controls are disabled...
 
* Boot the TS board normally, and then in /etc/sysconfig, edit these two files:
 
* Boot the TS board normally, and then in /etc/sysconfig, edit these two files:
  
* file: "ifcfg-eth0"  
+
* file "ifcfg-eth0" to:
  
 
  DEVICE=eth0
 
  DEVICE=eth0
  #IPADDR=192.168.0.50
+
  IPADDR=192.168.0.50
  #NETMASK=255.255.255.0
+
  NETMASK=255.255.255.0
  #NETWORK=192.168.0.0
+
  NETWORK=192.168.0.0
  #BROADCAST=192.168.0.255
+
  BROADCAST=192.168.0.255
 
  BOOTPROTO=static
 
  BOOTPROTO=static
 
  #BOOTPROTO=dhcp
 
  #BOOTPROTO=dhcp
 
  ENABLE=yes
 
  ENABLE=yes
  
* and file: "network_cfg"  
+
* and file "network_cfg" to:
  
 
  ### Technologic Systems
 
  ### Technologic Systems
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
 
  
 +
1. Boot the board and press Ctrl+C
 +
* NB: if this doesn't work, check minicom and make sure that both hardware and software flow control are off
 
2. This should drop you into the RedBoot command line
 
2. This should drop you into the RedBoot command line
  
 
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 vmlinux
  
 
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]"
 +
 
 +
e.g. Booting pmp3 from stewie
 +
>> exec -c "console=ttyAM0,115200 ip=dhcp nfsroot=159.28.230.34:/home/hip/nfs-boot/tslinux-pmp3"
  
 
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 incease the "Boot script timeout" some larger value like 10 (1s), this will give you more time to interrupt RedBoot using the Ctrl+C command.
+
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.
Line 72: Line 75:
 
10. The final prompt will ask you to save the changes you made by entering y/n.
 
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.
+
11. Reboot the board, it should now mount root from the host and path specified in RedBoot.
 +
 
 +
RedBoot> reset
 +
... Resetting.
  
 
12. If you experience boot errors, check your host configurations and NFS server configurations.
 
12. If you experience boot errors, check your host configurations and NFS server configurations.

Latest revision as of 11:58, 18 September 2008

Configuring RedBoot for NFS booting

Note:

  • If using minicom as your terminal emulator, make sure both hardware and software flow controls are disabled...
  • Boot the TS board normally, and then in /etc/sysconfig, edit these two files:
  • file "ifcfg-eth0" to:
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" to:
### 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

  • NB: if this doesn't work, check minicom and make sure that both hardware and software flow control are off

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 vmlinux

6. Edit the next line to:

>> exec -c "console=ttyAM0,115200 ip=dhcp nfsroot=[HOST IP]:[root path on host]"

e.g. Booting pmp3 from stewie

>> exec -c "console=ttyAM0,115200 ip=dhcp nfsroot=159.28.230.34:/home/hip/nfs-boot/tslinux-pmp3"

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 now mount root from the host and path specified in RedBoot.

RedBoot> reset
... Resetting.

12. If you experience boot errors, check your host configurations and NFS server configurations.