Post by @rqm
YESS! I did it. Managed to install #NetBSD to the BeagleBone Black's EMMC, AND downgrade u-boot to the 2018 version as the 2022 version has something broken with USB apparently. (Yet to test if I can get it to work now).
Anyway the process is actually FAR simpler on #NetBSD than what many tutorials suggest. No need to dd at specific offsets by hand.
- Get a Live SD card image for NetBSD from https://armbsd.org and image it to card
- Boot said live image by holding down the S2 button next to the SD card slot with the card inserted. Login is "root" with no password set initially.
- From the live environment, download the same image again and
ddit to the EMMC storage. The target device is usually/dev/rld1c- but check if your emmc isld0orld1.ΒΉ Run,
# ftp https://nycdn.netbsd.org/pub/arm/NetBSD-11.0-release/NetBSD-11-earmv7hf--bone-black.img.gz
# zcat NetBSD-11.0-release/NetBSD-11-earmv7hf--bone-black.img.gz | progress dd of=/dev/rld1c
- Shutdown; remove SD, reboot. It should now boot from EMMC.
To flash the old version of u-boot
- Shutdown. Insert live NetBSD SD card again. Boot from SD as before.
- Force-Install the OLD u-boot package and flash it to emmc using
installboot:
# pkg_add -f https://archive.netbsd.org/pub/pkgsrc-archive/packages/NetBSD/earmv7hf/8.0_2020Q4/All/u-boot-beagleboneblack-2018.11nb4.tgz
# installboot -u /dev/rld1c /usr/pkg/share/u-boot/beagleboneblack
- Shutdown. Remove SD. Boot. Now on boot it should report,
U-Boot 2018.11nb4 (Oct 01 2020 - 12:12:48 +0000)
Magic!
--
ΒΉ Do this by running dmesg | grep ld and confirming by checking drive sizes. Double-check with disklabel ldN if needed.
π 1
1 reaction
27 likes
Leonardo Taccari@iamleot@mastodon.sdf.org
nicklas boman@smurfd@mastodon.social
DeFrisselle βοΈ@defrisselle@mastodon.sdf.org
Ben Zanin@gnomon@mastodon.social
Stuart Longland (VK4MSL)@stuartl@longlandclan.id.au
oxy ~ *|* ~@oxy@bsdlab.au
Jay π©
@jaypatelani@bsd.network
tylerw@tylerw@mastodon.social
Mason Loring Bliss@mason@partychickens.net
Nathan Arthur@narthur@hachyderm.io
agc@agc@mastodon.social
sinza@sinza@oldbytes.space
bozont@bozont@mastodon.social
Kermode π¨π¦ π΄σ §σ ’σ ·σ ¬σ ³σ Ώ@gemlog@friendface.kalum.ca
David Gerard@davidgerard@circumstances.run
Acceleration Shark@accelshark@cupoftea.social
Kaiser C Kitty - Professional Genius@KaiserKitty@brain.worm.pink
Stephen Weigand@weigand@mastodon.sdf.org
d@nny disc@@hipsterelectron@circumstances.run
Cara@cararemixed@mastodon.social
benz@bentsukun@bsd.cafe
Tim Chase@gumnos@bsd.cafe
Daniel Wayne Armstrong@dwarmstrong@fosstodon.org
Tionisla@Tionisla@bsd.cafe
PonderStibbons@PonderStibbons@mas.to
Stefano Marinelli@stefano@mastodon.bsd.cafe
16 boosts
Ben Zanin@gnomon@mastodon.social
Jay π©
@jaypatelani@bsd.network
ππ©·π brett [he/him/any]@brett@akkoma.coiloptic.org
nicklas boman@smurfd@mastodon.social
Kg. Madee β
‘.@kgMadee2@mathstodon.xyz
sinza@sinza@oldbytes.space
bozont@bozont@mastodon.social
wfk@wfk@v.st
hoanga@hoanga@hachyderm.io
Kaiser C Kitty - Professional Genius@KaiserKitty@brain.worm.pink
benz@bentsukun@bsd.cafe
d@nny disc@@hipsterelectron@circumstances.run
Tim Chase@gumnos@bsd.cafe
Justine Smithies@justine@snac.smithies.me.uk
PonderStibbons@PonderStibbons@mas.to
Stefano Marinelli@stefano@mastodon.bsd.cafe
@rqm So, if a large enough SD card had a copy of itself on another partition, it would be an off-grid solution with a simple dd one-liner. Nice.
I wouldn't even know where to begin with the off-sets version!