Jump to content

Elliot Woods

Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey all! I'm wondering if there's a tried and tested method for preparing an armbian system to be made into an SD card image, including: * Clearing the right SSH data * Triggering firstrun to run next time * Shrinking partition * Any other suggestiosn NB : the filesystem for armbian seems to be quite different from raspbian / other. Which makes shrinking the partition from another computer quite confusing (e.g. when mounting a ripped img in ubuntu we just see one full partition across the entire SD card, even if there's lots of free space)
  2. trying this now.. https://forum.armbian.com/index.php?%2Ftopic%2F3718-orange-pi-zero-dev-kernel-does-not-see-expansion-usb-ports%2F
  3. Hey all Testing with an Orange Pi Zero with mainline kernel. I've just noticed that none of the usb devices show up which are connected to the pin-header usb ports Is there any quick fix for this? e.g. enabling something somewhere? i think i remember maybe enabling something before to use these ports but i can't quite remember now. checking armbian-config thank you elliot
  4. ah brilliant! so it will be unique between devices and i can use the same SD card image. this is perfect.
  5. final question : how to make sure that the MAC address will be randomised on next boot? (and not on subsequent boots)
  6. magic! it works!! thank you so much sun8i-h2plus-orangepi-zero.dts-4.11.12 file for reference: https://gist.github.com/elliotwoods/02cfef1c79babb91a14a2e555b9d8da2
  7. any references on how to do that? sorry to ask if it's an obvious thing.
  8. @martinayotte hah interesting! so now i just need to wait for the nightly build server to kick in? and then i can have fixed mac address? @zador.blood.stained thanks for the tips! are you suggesting that the kernel might update itself automatically? or that i might do it myself by accident at some point?
  9. got some hints from the other thread: especially on how best to misuse an internet forum / your life so I keep hearing about 'device tree' looking at the linked code: https://github.com/megous/linux/blob/orange-pi-4.11/drivers/net/ethernet/allwinner/sun8i-emac.c#L1221-L1226 it looks like if of_get_mac_address fails to get a mac address from of_node then it will assign a random one so i guess that in order to succeed we need to fix Device Tree? i didn't have this issue on the legacy kernel (but need docker, so need mainline kernel) any primer notes on Device Tree ?
  10. hey all! i want to create my own armbian image to burn to many devices it seems it would be smart to re-enable the firstrun to run the next time the os boots up (i.e. inside another Orange Pi) is the correct way to do this: systemctl enable firstrun ? Id like to: expand the partition set a random mac address create any keys p.s. sorry for multiple error posts.
  11. manually running : sed -i "s/^\#[^ tab]\+hwaddress ether/\thwaddress ether 00:e0:4c:55:01:01/" /etc/network/interfaces and rebooted still a random address (this time `d6:e2:72:eb:b4:e9`)
  12. also very curious how to re-activate the firstrun script after it's run the first time already (especially how to run it unattended, i.e. flag for it to be run for next boot)
  13. I'm testing on Armbian mainline now OPi Zero Armbian 5.27.170614 need to achieve static mac address per boot in the next 12 hours before 200 OPiZ's get silicone sealed into waterproof containers. so looking into this now... also adding notes for others with same issue who might also be less familiar with the inner workings of armbian and/or linux tried adding the file: /etc/modprobe.d/8189fs.conf (note that file didn't exist before) and setting its contents to: options 8189fs rtw_initmac=00:e0:4c:f5:16:d8 but that didn't help (new random MAC address on reboot) theres a file /etc/default/brcm40183 with: MAC_ADDR=43:29:B1:55:01:01 which doesn't correspond to any of the mac addresses its chosen at boot so far as I know (also this seems to be cubietrick specific?) also similar in /etc/default/ap6212 found the lines in /etc/init.d/firstrun: # set MAC for eth0 255: MACADDR=$(printf 'da:42:ea:%02X:%02X:%02X\n' $[RANDOM%256] $[RANDOM%256] $[RANDOM%256]) 256: sed -i "s/^\#[^ tab]\+hwaddress ether/\thwaddress ether $MACADDR/" /etc/network/interfaces 257 ;; will investigate here..
  14. no. But i definitely should get one. it seems to be perhaps an SD card issue. Which is a shame because it's brand new and i just ordered 200 of the same. From the same batch the first one works fine, the second one doesn't. SanDisk 8GB MicroSD HC1 (genuine) Investigating...
  15. mainline currently doesn't boot on my opi0 Armbian_5.27.170614_Orangepizero_Ubuntu_xenial_dev_4.11.3 2 red flashes after boot, and doesn't respond to ssh switching in old sd card works fine (legacy) is there an older mainline build which works well?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines