> I tried adding nvram='#S/sdM0/nvram' into cmdline.txt as follows:
>
> readparts=1 nobootprompt=local console='0 b115200' ether1=type=4330
> nvram='#S/sdM0/nvram'
>
> but the readnvram still says it can't find nvram.
When connecting via serial port, you don't have a user-friendly line-editing
interface
so it's possible to get inadvertent control characters embedded in a string.
Try this
experiment and see if you get a similar result:
init: starting /bin/rc
% echo $user
somebody
% echo $nvram
#S/sdM0/nvram
% echo $nvram | xd -c
0000000 # S / s d M 0 / n v r a m \n
000000e
% ls -l $nvram
--rw-r----- S 0 somebody somebody 512 Apr 14 19:54 '#S/sdM0/nvram'
% auth/readnvram
key proto=p9sk1 user=hamnavoe dom=hamnavoe.com !hex=XXXXXXXXXXXXXX
!password=______
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T9bb336bb1166fd70-M196830fc7d2db2b3b4c6eb94
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription