NixOS on ARM/ODROID-C2: Difference between revisions
imported>Grahamc Brain-dump of accessing the serial and setting it up for netboot |
imported>Grahamc mNo edit summary |
||
Line 1: | Line 1: | ||
I used minicom to access the serial: | I used minicom to access the serial: | ||
< | <syntaxhighlight> | ||
$ cat /etc/minirc.odroid-c2 | |||
# Machine-generated file - use "minicom -s" to change parameters. | # Machine-generated file - use "minicom -s" to change parameters. | ||
pu port /dev/ttyUSB0 | pu port /dev/ttyUSB0 | ||
pu lock /var/lock | pu lock /var/lock | ||
pu rtscts No | pu rtscts No | ||
</ | </syntaxhighlight> | ||
then run `sudo minicom` to access the serial console. | then run `sudo minicom` to access the serial console. | ||
Line 15: | Line 16: | ||
2. press enter right after boot, where it says: | 2. press enter right after boot, where it says: | ||
< | <syntaxhighlight> | ||
Hit [Enter] key twice to stop autoboot: 0 | Hit [Enter] key twice to stop autoboot: 0 | ||
</ | </syntaxhighlight> | ||
3. run: | 3. run: | ||
< | <syntaxhighlight> | ||
setenv gatewayip 10.5.3.1 | setenv gatewayip 10.5.3.1 | ||
setenv ipaddr 10.5.3.11 | setenv ipaddr 10.5.3.11 | ||
Line 27: | Line 28: | ||
setenv bootcmd "tftpboot" | setenv bootcmd "tftpboot" | ||
savenv | savenv | ||
</ | </syntaxhighlight> | ||
then rebooted | then rebooted |
Revision as of 18:00, 7 January 2018
I used minicom to access the serial:
$ cat /etc/minirc.odroid-c2
# Machine-generated file - use "minicom -s" to change parameters.
pu port /dev/ttyUSB0
pu lock /var/lock
pu rtscts No
then run `sudo minicom` to access the serial console.
To provision the system and set it up for netboot:
1. reboot 2. press enter right after boot, where it says:
Hit [Enter] key twice to stop autoboot: 0
3. run:
setenv gatewayip 10.5.3.1
setenv ipaddr 10.5.3.11
setenv serverip 10.5.3.1
setenv bootcmd "tftpboot"
savenv
then rebooted