NixOS on ARM/ODROID-C2: Difference between revisions

From NixOS Wiki
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:


<nowiki>$ cat /etc/minirc.odroid-c2  
<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
</nowiki>
</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:


<nowiki>
<syntaxhighlight>
Hit [Enter] key twice to stop autoboot:  0  
Hit [Enter] key twice to stop autoboot:  0  
</nowiki>
</syntaxhighlight>


3. run:
3. run:


<nowiki>
<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
</nowiki>
</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