jackdk has quit [Quit: Ping timeout (120 seconds)]
jackdk has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 245 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
<NickHu>
Does anyone have an orangepi zero plus 2 h5? I can't seem to get anything but armbian to boot on it - I'm starting to think the sectors it's telling me to dd u-boot to are incorrect
<NickHu>
ping samueldr - I think you have one of these too right?
<grw>
NickHu: the sector will be the same as all other allwinner chips afaik
<grw>
more likely armbian applies a patch which fixes some bug in uboot/kernel)
<grw>
i dont have that board but i had this issue with various other h3/h5.. armbian applies a lot of patches which dont always get upstreamed
<NickHu>
I was thinking I might be able to alleviate some of my problems if I could boot it into FEL mode and update u-boot on the spi flash
<NickHu>
But I'm struggling to get that to work either, using the 'special SD card image' here https://linux-sunxi.org/FEL
<NickHu>
(The nand seems to have some sort of android system on it already and it auto-boots that if I don't have armbian on the sd)
<grw>
i think SD card is first place the BROM looks, so should be enough to put valid loader there
<grw>
you compile uboot with orangepizero_plus_defconfig right?
<NickHu>
I just grabbed the one off hydra
<NickHu>
I'm a bit confused as to what type of memory this 8GB on-board storage is actually
<NickHu>
When I boot to armbian it shows up under /dev/mmcblk2
<NickHu>
And now that I wiped u-boot off it I can boot into fel mode, and spiflash-info says "no spi flash detected"
<NickHu>
I think it's emmc storage
<NickHu>
I'm not used to these little SoCs having anything except an SD slot
<NickHu>
How can I confirm that it's eMMC storage, and not say NAND?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NickHu>
Also, is it ok to just dd the nixos installer image over the eMMC partition? I see /dev/mmcblk2boot0 and /dev/mmcblk2boot1 and I'm wondering if they would be affected - I probably don't want to touch those
zupo has joined #nixos-aarch64
{^_^} has joined #nixos-aarch64
ryantrinkle has joined #nixos-aarch64
{^_^} has quit [Ping timeout: 248 seconds]
{^_^} has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 258 seconds]
{^_^} has quit [Ping timeout: 264 seconds]
<grw>
NickHu: hm, sorry not really sure. you can probably check to dts to see if its nand or emmc (i expect emmc though)
{^_^} has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
<samueldr>
hi o/
<samueldr>
the 8GB on board is eMMC
<samueldr>
and yes, flash it just like you would on other allwinner boards
<samueldr>
and yes, it will try to boot SD, then eMMC
<samueldr>
and yes, dd-ing the sd_image to the eMMC should be fine
<samueldr>
well, you'd need to dd the u-boot bits too
ryantrinkle has joined #nixos-aarch64
orivej has quit [Ping timeout: 268 seconds]
{^_^} has quit [Ping timeout: 264 seconds]
{^_^} has joined #nixos-aarch64
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 255 seconds]
ryantrinkle has joined #nixos-aarch64
<NickHu>
samueldr: Thanks! I managed to get nixos booting off eMMC, but I'm having other issues now
<samueldr>
NickHu: such as?
<NickHu>
For one, the wifi doesn't work, nor does my NAS expansion board (which I need to have USB ports)
<NickHu>
So I'm not able to actually rebuild
<samueldr>
:/
<NickHu>
Both work on armbian, which reports kernel 4.19.38-sunxi64
<samueldr>
TBF I haven't looked at them since I did the initial u-boot build
<NickHu>
The nixos image I grabbed off hydra is on kernel 4.19.44
<samueldr>
(got the for a project... which I kinda shelved :))
<samueldr>
IIRC armbian adds a bunch of patches
* samueldr
checks
<NickHu>
I wasn't sure if the sunxi64 part was referring to some sort of sunxi linux fork, but I thought that died years ago and now everything is done mainline
<samueldr>
if it's 4.19 it's unlikely to be the BSP (board support package)
<samueldr>
though sunxi64 is still "a" name for allwinner 64 bits platforms
<NickHu>
I mean, back in linux kernel version 3 (ish), you had both the sunxi maintained kernel and also mainline right?
<NickHu>
Maybe I can boot into armbian off the sd, and then chroot onto the installer which I dd'd to eMMC and do the rebuild like that?
<samueldr>
AFAIK, there is the BSP (what the OEM ships) which is likely to be an old kernel, but with the bajillion patches to make the board work
<samueldr>
there is still a sunxi kernel fork, which is their working tree
<samueldr>
and then it eventually gets pulled into mainline
<{^_^}>
#29569 (by lprndn, 1 year ago, open): Orange Pi One - ARM install.
<samueldr>
maybe
* samueldr
forgot about that
<samueldr>
though it't a bit out of date :)
<samueldr>
though that too might work
<samueldr>
(with an update for 5.1 maybe)
<samueldr>
I'll need to dive into the sunxi side of NixOS this week-end (unless something else strays me from the path)
<NickHu>
Is there any way I can build a nixos image (cross compiling) from my desktop PC? Because the orange pi zero itself only has a microusb port which I use to power it; no ethernet, no usb ports
<samueldr>
I'll write proper information about the pinebook (11"/1080p) and try to get "the perfect build"
<NickHu>
Happy to help you with that if I can :)
<samueldr>
not sure it's yet possible to build a complete image from cross compiling :(
<samueldr>
it wasn't a while ago, but there is _always_ work to make this better
<NickHu>
Hmm, I don't have access to any other aarch64 machines
<NickHu>
Actually I could install nix on armbian and build an install image out of that no?
<samueldr>
ack, that's annoying, because even if you installed nix on that orange pi, and built, it would be a long build :)
<samueldr>
yes
<samueldr>
if you want to do it, do it sooner rather than later: )
<samueldr>
note that the 8GB eMMC is probably not enough
<samueldr>
the sd_image being a bit over 2GB, it needs _at least_ 2× that space for the build
<NickHu>
I don't really know how to generate an install image.. is there a section in the manual about it?
<grw>
NickHu: the microusb is a OTG port, you can use g_ether module to use it as ethernet to you pc
<NickHu>
grw: Ah, can you provide more details on this?
<grw>
it is on most allwinner board anyway, let me check
<samueldr>
right, hadn't thought about that possibility
<grw>
i think `modprobe g_ether` is all you need to do
<samueldr>
always thought there was that random github user with a bunch of arm stuff in their repos, but not idling here
<NickHu>
samueldr: It seems like from that readme you're not supposed to use that builder to make installer images
<samueldr>
well, "assume anything could have been tainted by other users"
<samueldr>
it's more of a liability disclaimer, if you need to actually bootstrap something secure it's not a verified method
<samueldr>
for hacking around until you find something working, it's good and fast; THEN you can (and should) do a build without artifacts from that community builder
<samueldr>
not sure if how I put it makes sense :)
{^_^} has quit [Ping timeout: 264 seconds]
{^_^} has joined #nixos-aarch64
gchristensen has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
Thra11 has quit [Ping timeout: 268 seconds]
{^_^} has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 246 seconds]
Acou_Bass has quit [Ping timeout: 248 seconds]
Acou_Bass has joined #nixos-aarch64
gchristensen has quit [Quit: Connection closed for inactivity]