<Armbian-Discord> <a​deepv> for which board are you looking?
<Armbian-Discord> <S​G_94> X96 X4 Amlogic S905X4
<Armbian-Discord> <t​rohn_javolta> Hi all, yesterday I ran into a weird problem with my android tv box. After a freeze and restart it seems it refuses to boot from micro sd card 😄
<Armbian-Discord> <t​rohn_javolta> The box is a tanix tx5 pro, S905x2, 4gb 32gb
<Armbian-Discord> <t​rohn_javolta> Can anyone tell my why and how I could make it boot again from sd? I already tried toothpick method but that only got my into android recovery.
chewitt has joined #armbian-amlogic
<Armbian-Discord> <t​rohn_javolta> for fun I also tried to hook up the sd card to usb port via usb card reader and the box booted from usb... but not for long..tells me it can't find usb device but the card reader is a really crappy one so i think it is the card readers fault.
<Armbian-Discord> <t​rohn_javolta> also on the sd card I found an aml sth. zip which I tried to flash in android via the updater app. but in the android recovery I got an error, flash failed.
<Armbian-Discord> <I​doLi> Hey. I'm getting this error:
<Armbian-Discord> <I​doLi> signature verification failed error 21
<Armbian-Discord> <I​doLi> any solutions?
<Armbian-Discord> <I​doLi> also, I think that I downloaded the wrong OS. is there one for s905x3?
<Armbian-Discord> <M​anoftheSea> TV box goes to forum
<Armbian-Discord> <t​rohn_javolta> thats unfortunate, was hoping for a chat with sb knowledgeable
<Armbian-Discord> <c​0rnelius> problem is knowledge of the SoC doesn't always translate exactly the same to a have tvbox.
<Armbian-Discord> <c​0rnelius> especially when it comes to the boot process.
<Armbian-Discord> <n​armstrong> dealing with the vendor u-boot is the problem, otherwise the fully upstream boot chain is simple and documented
<Armbian-Discord> <c​0rnelius> yeah... i just bricked this one. 🙂
<Armbian-Discord> <M​anoftheSea> That's why you go to the forum
<Armbian-Discord> <t​rohn_javolta> I understand, was just hoping for a quick help. chat is way faster than posting in a forum
<Armbian-Discord> <M​anoftheSea> and far more ephemeral, ensuring the problem is asked again and again
<Armbian-Discord> <A​oyfe> Hey all, don't have an Armbian specific problem but hoping to gain some knowledge to fix my own stuff. I'm currently working on getting support for the ODroid HC4 into Talos (https://www.talos.dev/). Right now I'm trying to determine what I even need in order to do that. Talos boots from u-boot and comes bundled with upstream kernel 5.15. I'm very new at this so forgive the ignorance and feel free to point me to
<Armbian-Discord> a better location to ask questions.
<Armbian-Discord> <A​oyfe> What's the "secret sauce" to get petitboot to see the Talos disk as bootable? Or should I stuff upstream u-boot into SPI? Or, if I understand correctly, can I chainload the u-boot in Talos from u-boot that shipped with the HC4
<Armbian-Discord> <c​0rnelius> I don't own one, but if sticking with petitboot just flash the vendor uboot bin and use either a vfat or ext2 boot partition. from there you can use boot.cmd / boot.scr and boot.ini file(s).
<Armbian-Discord> <c​0rnelius> the C4 boot bin should work on the HC4 https://github.com/hardkernel/u-boot/releases
<Armbian-Discord> <A​oyfe> Pretend like I recognize all of the words and understand none of what you said. 🙂
<Armbian-Discord> <A​oyfe> I'm sorry, I'm very new at this.
<Armbian-Discord> <c​0rnelius> thats a problem 🙂
<Armbian-Discord> <A​oyfe> I don't have a preference of sticking with petitboot or not, to be honest. I'd prefer to stick with upstream u-boot as opposed to using vendor u-boot, I think?
<Armbian-Discord> <A​oyfe> https://u-boot.readthedocs.io/en/latest/board/amlogic/odroid-c4.html seems to indicate that I can do that, but again I'm not actually sure what I'm looking at.
<Armbian-Discord> <c​0rnelius> that requires extra effort 'as far as I know?' like erasing the SPI.
<Armbian-Discord> <c​0rnelius> I would think its easier just to keep pboot.
<Armbian-Discord> <A​oyfe> So if I keep pboot, I have to use vendor's u-boot as well?
<Armbian-Discord> <c​0rnelius> I believe so, yes. Someone else may know better? In my experience pboot doesn't not play well with mainline u-boot.
<Armbian-Discord> <A​oyfe> And I should be able to place u-boot.bin from the vendor onto a vfat partition at the beginning of e.g. a UFD and it'll "just work"?
<Armbian-Discord> <M​anoftheSea> I got talos on an ebin, from the EFI booting.
<Armbian-Discord> <c​0rnelius> on the odroid n2's there is a switch to bypass pboot. on the odroid m1 there is a command you can use to also bypass it... I don't believe the same is the case on the HC4
<Armbian-Discord> <M​anoftheSea> You should be able to accomplish the same... Does petitboot attempt to find the EFI app on the ESP?
<Armbian-Discord> <A​oyfe> @c0rnelius There's a button on the bottom of the board, looks like?
<Armbian-Discord> <A​oyfe> Momentary switch
<Armbian-Discord> <c​0rnelius> you can't use GPT on aml devices. in my testing.
<Armbian-Discord> <M​anoftheSea> Another thing you might try is booting talos from netboot.
<Armbian-Discord> <c​0rnelius> yeah, but you would need to use the button everytime to boot the board with mainline u-boot.
<Armbian-Discord> <c​0rnelius> unless you erase SPI
<Armbian-Discord> <M​anoftheSea> Ah right, the conflict between the GPT's entries and the boot code. Fixable, just need to set the GPT offset.
<Armbian-Discord> <M​anoftheSea> But if u-boot is in SPI, you don't need u-boot on SD
<Armbian-Discord> <c​0rnelius> how would you offset GPT?
<Armbian-Discord> <M​anoftheSea> Yeah, talos even has instructions to run an initial cluster in docker to make the netboot available to run the "real" cluster. Petitboot can netboot. That's probably your fast path.
<Armbian-Discord> <A​oyfe> @ManoftheSea For reasons I won't get into, I'm not netbooting Talos. 🙂
<Armbian-Discord> <A​oyfe> Talos needs to run from a persistent disk. There's no way to do what e.g. ESXi does and just always boot from the networkk
<Armbian-Discord> <c​0rnelius> I looked into that "i think cuz you mentioned it?"... its my understanding you can't offset GPT>
<Armbian-Discord> <A​oyfe> Netboot is a quick path for install, but I'm at the part where I'm trying to make the installer work with the HC4.
<Armbian-Discord> <M​anoftheSea> Ah, I confused amlogic (needs sector 2) and allwinner (needs sector 16) again. No, you can't GPT with u-boot on uSD. But... we aren't doing uboot on uSD.
<Armbian-Discord> <c​0rnelius> pretty sure I ran into a post from a GPT dev who said this can not be done.
<Armbian-Discord> <M​anoftheSea> Sure, it installs persistent info to disk. But you can still netboot the image and it finds the configuration on persistent disk.
<Armbian-Discord> <M​anoftheSea> Can't offset GPT header. Can offset the entries table. Amlogic interferes with the former.
<Armbian-Discord> <A​oyfe> So I have to use MBR partitions in order to boot the ODroid HC4?
<Armbian-Discord> <M​anoftheSea> A previous discussion.
<Armbian-Discord> <M​anoftheSea> No. Only if you have u-boot on uSD. If you have uboot on SPI (far superior install, IMO), you don't have to care about amlogic, allwinner, etc.
<Armbian-Discord> <A​oyfe> Ok, so how in order to stick u-boot in SPI, do I need to use vendor, mainline, mainline with patches?
<Armbian-Discord> <M​anoftheSea> Well, that's where I asked if petitboot (which is already running from SPI, right?) can boot uefi image
<Armbian-Discord> <M​anoftheSea> it should.
<Armbian-Discord> <M​anoftheSea> I don't remember if Talos puts the kernel/initrd in UEFI app, or if those are chainloaded from UEFI bootloader.
<Armbian-Discord> <M​anoftheSea> but basically, you want petitboot to launch the kernel/initrd.
<Armbian-Discord> <A​oyfe> I believe it they're chainloaded.
<Armbian-Discord> <M​anoftheSea> you already have a bootloader
<Armbian-Discord> <A​oyfe> Yeah, it's chainloaded.
<Armbian-Discord> <M​anoftheSea> If you search this discord for talos, you'll find where I mentioned it a few other times. For a little while, I was launching the kernel/initrd from extlinux.conf and NOT from UEFI
<Armbian-Discord> <A​oyfe> Grub is the EFI app, then Grub loads the kernel.
<Armbian-Discord> <M​anoftheSea> Petitboot on itself: Petitboot uses udev to discover block devices and network interfaces and parses a set of known locations for bootloader configurations. Petitboot supports a number of configuration formats including GRUB, SYSLINUX, and Yaboot. Booting is performed via the kexec mechanism.
<Armbian-Discord> <M​anoftheSea> So... it ought to detect the grub configuration that Talos sets up.
<Armbian-Discord> <r​pardini> for HC4: get a recent Armbian image, boot from SD by holding button below the board.
<Armbian-Discord> <r​pardini> Install u-boot to SPI with armbian-install, that will wipe Petitboot.
<Armbian-Discord> <r​pardini> Then you can boot EFI or whatever you want from SD or even SATA.
<Armbian-Discord> <M​anoftheSea> Oh, though... you'll need to drop your DTB in manually
<Armbian-Discord> <A​oyfe> Yeah, that's fine. There's a DTB in mainline linux now for the HC4.
<Armbian-Discord> <M​anoftheSea> Is it complete? The helios64 has a dtb in mainline, but it's definitely not the same as the one armbian patches in
<Armbian-Discord> <M​anoftheSea> (that's a rockchip RK3399)
<Armbian-Discord> <r​pardini> it is, mainline support for the HC4 is stellar, thanks to Neil.
<Armbian-Discord> <M​anoftheSea> great!
<Armbian-Discord> <A​oyfe> @rpardini How does armbian package u-boot for the HC4? Trying to get that into Talos' build process so that I can streamline the installation
<Armbian-Discord> <r​pardini> Yep.
<Armbian-Discord> <A​oyfe> ....I don't think that's a yes or no question. 😛
<Armbian-Discord> <M​anoftheSea> I think it was to "great"
<Armbian-Discord> <M​anoftheSea> But armbian doesn't flash spi automatically
<Armbian-Discord> <r​pardini> the u-boot package for HC4 has 2 bins
<Armbian-Discord> <r​pardini> one for SD and one for SPI
<Armbian-Discord> <M​anoftheSea> https://nixos.wiki/wiki/NixOS_on_ARM/ODROID-HC4
<Armbian-Discord> <r​pardini> the armbian-install utility (previously nand-sata-install) picks the correct one for you
<Armbian-Discord> <M​anoftheSea> another reference piont
<Armbian-Discord> <A​oyfe> @ManoftheSea That one installs u-boot to the sdcard.
<Armbian-Discord> <M​anoftheSea> I know, so does armbian.
<Armbian-Discord> <A​oyfe> Yeah, I was trying to follow upstreams' docs, but quickly got confused.
<Armbian-Discord> <r​pardini> it's worth noting the SD version of u-boot for the HC4 does not support SATA; it is really a C4 (not HC4) build.
<Armbian-Discord> <M​anoftheSea> oh wow, yeah, I'm reading through this too, and my conclusion continues to be "throw amlogic in the garbage"
<Armbian-Discord> <r​pardini> the SPI version supports SATA no problem.
<Armbian-Discord> <c​0rnelius> be easier just to stick with vendor u-boot on that board. plus no compiling really needed.
<Armbian-Discord> <r​pardini> "vendor uboot" comes with Petitboot and it's brain-deadness
<Armbian-Discord> <r​pardini> also, boots a legacy 4.x kernel, and then kexec's. good luck with that.
<Armbian-Discord> <c​0rnelius> yeah... but using mainline just complicates things. i have no horse in the race as I don't have the unit. but for the masses vendor u-boot seems the easiest road to take.
<Armbian-Discord> <c​0rnelius> BS... you can use upstream kernel on that.
<Armbian-Discord> <r​pardini> fact they don't release the source for their Petitboot says all.
<Armbian-Discord> <M​anoftheSea> If petitboot can read grub or extlinux configuration, I don't see a reason to overwrite petitboot just to have a cattle system to run Talos.
<Armbian-Discord> <c​0rnelius> sure and I agree. but he is talking about getting the board booted not reinventing the wheel.
<Armbian-Discord> <r​pardini> well, I am just contributing what I knew, since he considered wiping Petitboot, and that's what I do on my HC4 army.
<Armbian-Discord> <n​armstrong> Wut ? Do you mean upstream uboot or vendor uboot ? Upstream uboot definitely support sata on both sd and spi
<Armbian-Discord> <M​anoftheSea> booting talos from SATA? I don't think that's the plan.
<Armbian-Discord> <r​pardini> Armbian's, Neil, sorry. The SD u-boot shipped on Armbian for the HC4 is still the C4, for... lack of time reasons 😉
<Armbian-Discord> <r​pardini> The SPI version is using the correct defconfig, while the SD is still using c4's defconfig. Will fix this one day.
<Armbian-Discord> <M​anoftheSea> Why doesn't petitboot find and run the grub config that Talos puts down?
<Armbian-Discord> <r​pardini> well -- go decompile it and find out
<Armbian-Discord> <r​pardini> I won't 😉
<Armbian-Discord> <M​anoftheSea> I don't ask you to. But I think that question is the fastest route to @Aoyfe 's solution
<Armbian-Discord> <r​pardini> well I offered one solution, sans-petitboot, someone with Petitboot experience can offer another 🫡
<Armbian-Discord> <M​anoftheSea> I suppose that is a limitation, yes.
<Armbian-Discord> <M​anoftheSea> And I agree, for my own pets, I would also wipe petitboot
<Armbian-Discord> <A​oyfe> Ok, so I should be able to build upstream u-boot and flash it to SPI and then from there do regular EFI boot things?
<Armbian-Discord> <n​armstrong> Yes
<Armbian-Discord> <r​pardini> yes.
<Armbian-Discord> <A​oyfe> And then other than that I need the DTB in the boot partition, correct?
<Armbian-Discord> <n​armstrong> Ah ok :-p it doesn’t really matter since the spi version is usually the one used for EFI
<Armbian-Discord> <n​armstrong> Nop it will use the dtb from uboot
<Armbian-Discord> <A​oyfe> Even better.
<Armbian-Discord> <A​oyfe> So next question: How do I build u-boot for this thing? Do I need to do anything related to this e.g. for packaging https://github.com/LibreELEC/amlogic-boot-fip/tree/master
<Armbian-Discord> <n​armstrong> Yes
<Armbian-Discord> <r​pardini> Yes.
<Armbian-Discord> <r​pardini> lol
<Armbian-Discord> <A​oyfe> Ok, so I was actually pretty close to the right track before I came in here. That's good to know.
<Armbian-Discord> <r​pardini> Neil has a great Makefile that does all the FIP things you need.
<Armbian-Discord> <n​armstrong> The « u-boot.bin » you get when building uboot is the « BL33 u-boot.bin », to be distinguished with the « u-boot.bin » you get after build.sh you use to boot the device
<Armbian-Discord> <M​anoftheSea> You're going to, by default, overwrite the platform firmware?
<Armbian-Discord> <M​anoftheSea> You are going to surprise people.
<Armbian-Discord> <r​pardini> where did you get this idea?
<Armbian-Discord> <M​anoftheSea> This right here.
<Armbian-Discord> <n​armstrong> @ManoftheSea for Odroid-HC4 ?
<Armbian-Discord> <r​pardini> well ok some dissonance in here, relax.
<Armbian-Discord> <c​0rnelius> 🙂
<Armbian-Discord> <M​anoftheSea> If you build and flash u-boot to SPI, then the install of Talos will change the boot process of the board such that other installations will be broken.
<Armbian-Discord> <A​oyfe> @narmstrong Right, so build-fip.sh outputs u-boot.bin that includes all the various bootloader stages and I can dd that to SPI?
<Armbian-Discord> <n​armstrong> Yes exact
<Armbian-Discord> <A​oyfe> I was so close. 😄
<Armbian-Discord> <M​anoftheSea> If you instead use the existing petitboot to run Talos linux, then people can try it without consequence.
<Armbian-Discord> <M​anoftheSea> also, don't dd to spi, there's a different tool for the memory device
<Armbian-Discord> <r​pardini> dd works perfectly well against an mtdblock device.
<Armbian-Discord> <M​anoftheSea> oh, maybe my info is old.
<Armbian-Discord> <M​anoftheSea> okay
<Armbian-Discord> <M​anoftheSea> is it because "mtdblock" is handling the erasure process?
<Armbian-Discord> <r​pardini> btw, cat xx.bin > /dev/mtdblockX; sync also works. it's all in the kernel.
<Armbian-Discord> <r​pardini> mtdblock exposes the mtd as a block device.
<Armbian-Discord> <r​pardini> for sequential write of u-boot it's perfectly fine.
<Armbian-Discord> <r​pardini> either way I think we have mtdutils in all userlands now, so you can use the legacy commands as well. but that's not what armbian-install does (it uses dd).
<Armbian-Discord> <M​anoftheSea> I concede
<Armbian-Discord> <M​anoftheSea> But maintain that overwriting petitboot is going to surprise people who will complain that "Talos broke my system"
<Armbian-Discord> <r​pardini> lol then they can go to the Talos Discord and complain there 😉
<Armbian-Discord> <A​oyfe> @ManoftheSea Sure, but it'll be called out in the documentation because it's something that won't be automated. We can supply the built u-boot, they'll need to apply it
<Armbian-Discord> <M​anoftheSea> so you need to be able to boot from petitboot anyway
<Armbian-Discord> <r​pardini> untrue. you can skip petitboot by holding the button.
<Armbian-Discord> <r​pardini> this process of "boot Armbian once with toothpick/button, flash u-boot to eMMC or SPI, then use for EFI" is being used for Amlogic boards by quite a few folks. never seen it "documented" though.
<Armbian-Discord> <r​pardini> I've similar also for the N2+, but that requires an overlay/alt-dtb to get access to the MTD.
<Armbian-Discord> <r​pardini> so HC4 SPI -> SATA is very doable, and N2+ SPI -> USB3 also.
<Armbian-Discord> <M​anoftheSea> Why is it wrong to boot from petitboot?
<Armbian-Discord> <M​anoftheSea> Particularly for something like Talos, which exists only to be a thin layer that enables a k8s cluster?
<Armbian-Discord> <r​pardini> leaves
<Armbian-Discord> <A​oyfe> I don't think it's wrong to boot from pboot, just that it requires board-specific layouts, etc. Using mainline u-boot gives a much nicer experience.
<Armbian-Discord> <M​anoftheSea> If it boots from petitboot, aoyfe doesn't have to build u-boot, doesn't have to flash spi, doesn't have to break the factory state of the board, and still gets a Talos system
<Armbian-Discord> <A​oyfe> Like, for example, not being able to use GPT disks.
<Armbian-Discord> <M​anoftheSea> I don't see the difference in board-specificity between u-boot and petitboot
<Armbian-Discord> <M​anoftheSea> that's in regards to mainline u-boot from uSD, no?
<Armbian-Discord> <M​anoftheSea> you can't use GPT and mainline u-boot for amlogic from uSD
<Armbian-Discord> <r​pardini> phew. you can't have u-boot and GPT on the same media for Amlogic.
<Armbian-Discord> <r​pardini> if u-boot is in SPI, you can have whatever you want on SD/SATA/whatever.
<Armbian-Discord> <r​pardini> Petitboot's u-boot is probably vendor, 2015.x, and can't EFI and shit.
<chewitt> petitboot is petitboot, not a derivative of u-boot
<Armbian-Discord> <r​pardini> Petitboot's u-boot boots a vendor 4.x kernel, also in SPI, which does braindead things, then kexec's into the target kernel.
<Armbian-Discord> <r​pardini> If that is not reason enough to remove Petitboot, I dunno what is. Ahn, maybe cos we don't have the source for it, either.
<Armbian-Discord> <r​pardini> chewitt: Christian, long time no see. Hello!
<Armbian-Discord> <M​anoftheSea> that it can't bootload is a good reason to kill it.
<chewitt> rpardini: You all buggered off into sub-channels .. and I've been work-busy
<Armbian-Discord> <r​pardini> that said, I've complained endlessly to HardKernel; for the ODROID-M1 (rk3568) they did go out of their way to make it easier to avoid Petitboot. It's still.... not good enough but shows willingness to accomodate mainline better.
<Armbian-Discord> <M​anoftheSea> I'm still unhappy that it seems like platform firmware is distro-specific.
<Armbian-Discord> <M​anoftheSea> Oh, that's good to hear.
<chewitt> am trying to score points by cleaning-up and upstreaming as much stuff as I can from my tree
<Armbian-Discord> <r​pardini> chewitt: excellent. as you know I constantly borrow from your tree. we've diverged a bit recently due to AXG vs SM1 vs meson-gx-mmc clock phase. I've to update the venc/vdec patches after you're done too...
<chewitt> I dropped the 270º patch from 6.1/62
<chewitt> and I reverted the SDIO interrupt support which seems to cause issues
<chewitt> the vdec patches are an attempt to put code in public view in the hope someone takes an interest in fixing the many issues
<chewitt> I've dropped HEVC from g12a+ as it wedges the board with 10-bit code
<Armbian-Discord> <r​pardini> yep, so did we -- but @adeepv needs them for his AXG JetHub boards. He did a patch to read phase, if existing, from DT, so only his boards get 270. Then, later, the BananaPi M5 turned out to also need 270! (lol)...
<chewitt> HEVC 8-bit works, but since you can't tell 8-bit vs 10-bit easily it's better to force software decode on all than wedge the board
<Armbian-Discord> <r​pardini> Yep, I've confirmation from @c0rnelius that the Radxa Zero, at least, needs reverting of the SDIO IRQ stuff. Have you found any other boards that break with it?
<Armbian-Discord> <c​0rnelius> @chewitt this is off topic. I've noticed when using 6.1.y on RK3328 the HDMI doesn't work. Have you seen this?
<chewitt> I also disabled MPEG1/2 as that got broken along the way .. although I won't push that upstream
<chewitt> (too much dirty laundry)
<chewitt> RK things have a large SEP field around them so no clue about that, sorry..
<Armbian-Discord> <c​0rnelius> alright, thanx.
<chewitt> try one of the 10.95.0 (LE11) test images from our test server
<Armbian-Discord> <r​pardini> Yep -- I wanna get Armbian working with basic ffmpeg venc/vdec, I guess I need to include the vdec/venc firmware bin's as well... and unclear if ffmpeg itself needs patching?
<Armbian-Discord> <c​0rnelius> k
<chewitt> if it works there you're missing patches perhaps
<chewitt> there is/will-be an effort to clear house a bit on the RK side soon
<chewitt> rpardini: you need kernel patches + firmware + ffmpeg patches
<Armbian-Discord> <c​0rnelius> indeed... i pulled ur patches and built a new kernel, but never actually did the install as something came up. I was mostly just curious if you have seen the issue or it was just me.
<chewitt> a serious attempt to upstream the ffmpeg bits has started
<chewitt> one of the ffmpeg maintainers who we've abused for helping the upstream process before (who has an interest in pi matters) is working with the Pi developer who's been hoarding changes
<chewitt> RPi Foundation have committed to doing the work, i.e. funding their developer to get it done
<chewitt> firmware is in linux-firmware or you can pick the LE meson-firmware repo which has only the firmware we need
<chewitt> the kernel patches I've sent today will probably endure some bikeshedding but work as-submitted
<Armbian-Discord> <r​pardini> very nice! thanks for the updates, it's nice to know a little about behind the scenes.
<chewitt> I made the case early on in the Pi dev cycle that changes working on more than RPi hardware will be easier to upstream (and are prob. more robust)
<chewitt> we found a few differences .. which is inevitable with stateful decoders
<chewitt> but the code handles 3-4 different v4l2_m2m SoC types now
<chewitt> and also v4l2_requests to handle the stateless side of things; which is much better shape due to the lack of firmware blobs
<chewitt> RPi4 using both v4l2_m2m for H264 and v4l2_requests for HEVC
<Armbian-Discord> <r​pardini> I've LE's master/main from October build running here on RPi4b, very few artifacts, some vdec hangs very rarely, otherwise works great.
<chewitt> there are some firmware fixes that should get confirmed before we ship LE11 .. in a couple of weeks
<chewitt> things that help with users seeing blank screens on boot
<chewitt> some timing juju has been tinkered with
<chewitt> also some graphical glitches seen during certain operations like scrolling in large Kodi GUI lists
<Armbian-Discord> <r​pardini> oh weeks, it it that close? (/me fires off builds of LE)
<Armbian-Discord> <c​0rnelius> I'm a dick. I use CE.
<chewitt> 10.95.0 (LE11 b1) should be out within days
<chewitt> we prob. move quickly to an rc1, then release
<chewitt> it's quite well baked by now
<Armbian-Discord> <r​pardini> it is. great work 👍
<Armbian-Discord> <A​oyfe> Sorry, got work busy. Thank you all for your help
<Armbian-Discord> <r​pardini> chewitt: nice to know LE 11 is gonna be released. when it is, I'll try to send @Tonymac32 's patches for the Tinkerboard2, maybe Heitbaum will run with them for 12.
<Armbian-Discord> <c​0rnelius> @rpardini Hey i'm not discounting all the great efforts LE does. Just... on my AML devices. CE I feel works better. Must be all that vendor garbage.
<Armbian-Discord> <c​0rnelius> When i wanna watch a movie, I want to play. simple.
<chewitt> CE works better for anything media related
<chewitt> although on older hardware LE is now working quite nicely
<Armbian-Discord> <r​pardini> Yep I don't... judge.... well I do 😉 mainline all the things... or no-movie-for-rpardini.
<Armbian-Discord> <r​pardini> "no soup for you!"
<chewitt> the current 'vdec' driver is authored against GXL/GXM and most of that is applicable to GXBB too
<Armbian-Discord> <c​0rnelius> ha
<chewitt> the newer hardware needs the 'hevc' driver (not to be confused with HEVC codec)
<chewitt> this does more on software and skips the esparser stage which helps with memory management
<chewitt> but architecturally really needs a different driver
<chewitt> the current code tries to do everything in one, but that's not really the right direction
<chewitt> right now the 'hevc' driver isn't really working right, so g12a/b and sm1 aren't well supported
<Armbian-Discord> <r​pardini> switches to testing an S912 from the S922
<Armbian-Discord> <r​pardini> hmm, nice to know, I thought they were the same bits for all meson64
<Armbian-Discord> <c​0rnelius> @chewitt done any magic concerning the N2L and mainline u-boot?
<chewitt> there's 2.5 generations
<chewitt> gxbb, then gxl/gxm, then g12a/b + sm1
<chewitt> gxbb/gxl/gxm are similar enough except gxbb not having vp9, and gxbb/gxl being 8-bit only (gxl converts 10-bit to 8-bit for output), then gxm has 10-bit output
<Armbian-Discord> <T​onymac32> the regulator driver was contributed to me by Asus. the fan53555 driver is SO FREAKING BAD that I didn't even attempt to merge them into one
<Armbian-Discord> <T​onymac32> like "I'm ashamed for the devs" bad
<Armbian-Discord> <T​onymac32> 🙂
<Armbian-Discord> <r​pardini> @Tonymac32 https://github.com/rpardini/LibreELEC.tv/commit/414004dd8b3b1b59f12491ff50cf88347c56b3fe ported your DT and ASUS's driver to LE a year ago, never sent...
<chewitt> send the device-tree upstream to the kernel first
<chewitt> if it's accepted there we will happily backport things
<Armbian-Discord> <n​armstrong> N2L linux has been sent today, I’ll sent the uboot support when I’ll merge the linux set, but I have a branch with it
<Armbian-Discord> <r​pardini> will buy Tony & mmind a fancy whiskey and wait for the magic to happen upstream ;-D
<Armbian-Discord> <c​0rnelius> @narmstrong thanx for the heads up. you got a link for the branch?
<Armbian-Discord> <T​onymac32> that regulator driver needs hacked into submission first, those fan53200's drive the gpu and big cores
<Armbian-Discord> <c​0rnelius> @narmstrong ur awesome. thanx.
<Armbian-Discord> <r​pardini> buys an N2L
<Armbian-Discord> <r​pardini> yeah, thanks guys for all your work, it's awesome.
<Armbian-Discord> <n​armstrong> It’s a cool little boardy 🙂
<Armbian-Discord> <T​enkawa> looks over at his
<Armbian-Discord> <c​0rnelius> i only wish it had ath
<Armbian-Discord> <n​armstrong> Yep it’s the only bad point
<Armbian-Discord> <c​0rnelius> indeed
<Armbian-Discord> <T​enkawa> Not practical for me since my router is 180 ft away
<Armbian-Discord> <T​onymac32> oooooooof I didn't notice that
<Armbian-Discord> <c​0rnelius> @Tenkawa still. I like options.
<Armbian-Discord> <r​pardini> well if the USB3 works decently... unlike the N2...
<Armbian-Discord> <T​onymac32> should be no hub
<Armbian-Discord> <T​enkawa> the USB3 flies
<Armbian-Discord> <c​0rnelius> the n2's usb3 is pretty spot on. the n2+ is not so much.
<Armbian-Discord> <T​enkawa> I was amazed at even how well a thumbdrive ran
<Armbian-Discord> <r​pardini> oh, sorry, yeah, N2+ I meant.
<Armbian-Discord> <T​onymac32> lol my N2 USB was toast
<Armbian-Discord> <c​0rnelius> not sure what thats about. poor design?
<Armbian-Discord> <r​pardini> Powering issues, a hog instead of proper hub, etc
<Armbian-Discord> <T​onymac32> there are 3 revs of N2 before the USB3 was fixed
<Armbian-Discord> <T​enkawa> I fried a
<Armbian-Discord> <T​onymac32> but I don't have a fixed one to comment on the fix
<Armbian-Discord> <T​enkawa> N2+
<Armbian-Discord> <T​enkawa> but my N2 is solid
<Armbian-Discord> <r​pardini> mine N2+'s USB3 is fried.
<Armbian-Discord> <T​enkawa> same
<Armbian-Discord> <T​enkawa> rest works fine
<Armbian-Discord> <T​onymac32> that's a Genesys logic hub on those, eh?
<Armbian-Discord> <r​pardini> ehh... I think so... haven't touched it, well, since it fried. heh...
<Armbian-Discord> <T​enkawa> checking
<Armbian-Discord> <T​enkawa> Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. USB3.1 Hub
<Armbian-Discord> <T​enkawa> yes
<Armbian-Discord> <T​onymac32> ah
<Armbian-Discord> <T​onymac32> bummer on the no ETH thing on the N2L
<Armbian-Discord> <T​onymac32> I wanted a 64-bit replacement for the MC1
<Armbian-Discord> <T​enkawa> do you need more processing or io?
<Armbian-Discord> <T​onymac32> MC1 is a compute board only
<Armbian-Discord> <T​enkawa> if you don't need much network speed you could use the usb2 port for an eth dongle
<Armbian-Discord> <T​onymac32> such a mess
<Armbian-Discord> <T​enkawa> and save the usb3
<Armbian-Discord> <T​onymac32> this is more like La Frite, just with a big SoC
<Armbian-Discord> <T​onymac32> of course even that has ETH
<Armbian-Discord> <c​0rnelius> @Tenkawa has one. Says its nice.
<Armbian-Discord> <T​onymac32> I'm sure it is, it just doesn't fit what I had in mind
<Armbian-Discord> <T​onymac32> seems an interesting choice is all
<Armbian-Discord> <c​0rnelius> Currently we using the vendor uboot to get it going. I wanna try mainline of couse.
<Armbian-Discord> <c​0rnelius> Yes... Seems to be very specific. Meant to be embedded.
<Armbian-Discord> <T​enkawa> The thing that surprised me is that its barely bigger than a Radxa zero.
<Armbian-Discord> <A​oyfe> Sorry, back again.
<Armbian-Discord> <T​onymac32> it should be an "A" size
<Armbian-Discord> <T​onymac32> roughly
<Armbian-Discord> <c​0rnelius> Its the size of a XU4 right?
<Armbian-Discord> <T​enkawa> Let me look
<Armbian-Discord> <A​oyfe> I built u-boot and I flashed an sdcard with HardKernel's Ubuntu install. I don't see /dev/mtdblock0, but I do see /dev/spidev0.0. Is that the SPI or am I missing something
<Armbian-Discord> <T​onymac32> that's a device so you can userspace some SPI devices
<Armbian-Discord> <T​onymac32> you'd need to adjust the dtb to have the spi flash device
<Armbian-Discord> <A​oyfe> Looks like what HK ships doesn't have it, then.
<Armbian-Discord> <A​oyfe> Can I overwrite SPI from within pboot (which is booted from SPI)?
<Armbian-Discord> <T​onymac32> unknown
<Armbian-Discord> <T​enkawa> a bit smaller... xu4: 83 x 58 x 20 n2l: 69mm x 56mm x 22
<Armbian-Discord> <T​enkawa> so mixed differences
<Armbian-Discord> <T​enkawa> that 83 vs 69 is noticeable
<Armbian-Discord> <c​0rnelius> sweet... even with its lacking an eth i'm still very interested.
<Armbian-Discord> <T​enkawa> I see why they are marketing these for industrial use
<Armbian-Discord> <c​0rnelius> i feel onboard wifi should have been the road taken.
<Armbian-Discord> <c​0rnelius> exactly
<Armbian-Discord> <T​onymac32> ok pi A is 65x56
<Armbian-Discord> <T​onymac32> so that's what I figured
<Armbian-Discord> <T​onymac32> normal HAT bolt pattern
<Armbian-Discord> <I​doLi> Hey, where is the lateset image file for Amlogic S905X3?
<Armbian-Discord> <T​onymac32> we don't support that directly, maybe TV box?
<Armbian-Discord> <I​doLi> yeah it's for a tv box
<Armbian-Discord> <T​onymac32> or is it in a board I've forgotten? 🙂
<Armbian-Discord> <I​doLi> ^^
<Armbian-Discord> <T​onymac32> forums under TV boxes should have some info
<Armbian-Discord> <I​doLi> okay
<Armbian-Discord> <I​doLi> but I didn't find it any where
<Armbian-Discord> <I​doLi> ill look again
<Armbian-Discord> <I​doLi> thanks
<Armbian-Discord> <T​onymac32> I don't handle those unfortunately
<Armbian-Discord> <I​doLi> aw man
<Armbian-Discord> <I​doLi> do you think there's an alternative maybe?
<Armbian-Discord> <T​onymac32> no idea
<Armbian-Discord> <I​doLi> okay
<Armbian-Discord> <c​0rnelius> its the wild wild west. can they work?. sure. is it always easy? no.
<Armbian-Discord> <I​doLi> I'ma just download Ubuntu and hope this works
<Armbian-Discord> <A​oyfe> This doesn't seem to be working? I'm trying to flash the "packaged" u-boot.bin to /dev/mtdblock0 on my HC4 based on https://github.com/armbian/build/blob/master/config/boards/odroidhc4.conf#L17 but it looks like it's too large?
<Armbian-Discord> <n​armstrong> Too large ?? What’s the size of the binary ?
<Armbian-Discord> <A​oyfe> 1.5M
<Armbian-Discord> <A​oyfe> the "unpackaged" binary seems to be 839k
<Armbian-Discord> <A​oyfe> Also do I need to erase the other 3 mtds?
chewitt has quit [Quit: Zzz..]
<Armbian-Discord> <r​pardini> Aoyfe, you're using vendor kernel? that splits the mtd in 4
<Armbian-Discord> <r​pardini> use Armbian, and you'll get mtdblock0 31:0 0 16M 0 disk
<Armbian-Discord> <A​oyfe> I'm using pboot.
<Armbian-Discord> <r​pardini> Petitboot == vendor kernel.
<Armbian-Discord> <r​pardini> really, go to Petitboot channel for that.
<Armbian-Discord> <A​oyfe> Yeah, just being specific.
<Armbian-Discord> <A​oyfe> I'm mostly just trying to flash over pboot with as minimal fuss as possible
<Armbian-Discord> <r​pardini> 👆 minimal fuss
<Armbian-Discord> <A​oyfe> Yeah, fair.
<Armbian-Discord> <A​oyfe> I was trying to be top sneaky since I'm already building u-boot for Talos.
<Armbian-Discord> <A​oyfe> I guess though that if people are manually flashing their devices anyway, it won't matter
<Armbian-Discord> <r​pardini> Is Talos the name for that machined distro someone did years ago?
<Armbian-Discord> <r​pardini> k8s-oriented etc?
<Armbian-Discord> <A​oyfe> Yes.
<Armbian-Discord> <r​pardini> Nice, heard a Kubernetes podcast on it a while ago.
<Armbian-Discord> <A​oyfe> Yeah, I run it on all my pis
<Armbian-Discord> <r​pardini> ufff, poor Pi's, with all that TLS that k8s does.
<Armbian-Discord> <r​pardini> will perform much better on the HC4.
<Armbian-Discord> <A​oyfe> So I just need to run armbian-install and then I should be able to boot vanilla Ubuntu, correct
<Armbian-Discord> <A​oyfe> ?
<Armbian-Discord> <r​pardini> armbian-install will offer an option to "install u-boot to MTD"
<Armbian-Discord> <A​oyfe> It just says "install bootloader to SD/eMMC"
<Armbian-Discord> <r​pardini> "SPI Flash"
<Armbian-Discord> <A​oyfe> Nope.
<Armbian-Discord> <A​oyfe> Nothing listed in /proc/partitions for mtd
<Armbian-Discord> <r​pardini> uname -a ?
<Armbian-Discord> <A​oyfe> Linux odroidhc4 5.19.17-meson64
<Armbian-Discord> <r​pardini> I am sincerely puzzled.
<Armbian-Discord> <A​oyfe> Grammed Jammy from here: https://www.armbian.com/odroid-hc4/
<Armbian-Discord> <r​pardini> that is... puzzling.
<Armbian-Discord> <r​pardini> mtd stuff is in mainline for a long time now.
<Armbian-Discord> <A​oyfe> I tried it on another unit (I have 3) just in case.
<Armbian-Discord> <A​oyfe> Same result
<Armbian-Discord> <I​gorPec> we have been tacking armbian-install lately, perhaps it got borked
<Armbian-Discord> <I​gorPec> try unfreeze and apt update / upgrade, then try again
<Armbian-Discord> <I​gorPec> or switch to nightly
<Armbian-Discord> <r​pardini> it's not that.
<Armbian-Discord> <r​pardini> image is not borked. his HC4 seems to have a different SPI NOR chip...
<Armbian-Discord> <r​pardini> I have spi-nor spi0.0: xt25f128b (16384 Kbytes)
<Armbian-Discord> <r​pardini> he has spi-nor spi0.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00
<Armbian-Discord> <r​pardini> so it's either Petitboot "masking" stuff (button-press didn't work), or HardKernel switched NOR chips recently
<Armbian-Discord> <r​pardini> as has been very common due to shortages.
<Armbian-Discord> <r​pardini> so much for "minimal fuss".
<Armbian-Discord> <r​pardini> 🤷
<Armbian-Discord> <r​pardini> @IgorPec you mentioned someone else had problems with HC4 MTD/NOR flash a while ago too?
<Armbian-Discord> <I​gorPec> ahaa, yes, i remember someone else
<Armbian-Discord> <I​gorPec> they could change chips, surely
<Armbian-Discord> <A​oyfe> Should I try using the HK Ubuntu install to flash SPI? Just need a u boot to flash with
<Armbian-Discord> <r​pardini> and I wanna know what chip it is, so we can include/hack and solve for future users 😉
<Armbian-Discord> <r​pardini> since HK is oh so helpful and interested in community
<Armbian-Discord> <A​oyfe> Lol
<Armbian-Discord> <r​pardini> goes barfing at tobetter's tree
<Armbian-Discord> <A​oyfe> Hrm...
<Armbian-Discord> <A​oyfe> Guess I need to crack the case open on minute
<Armbian-Discord> <A​oyfe> On mine*
<Armbian-Discord> <A​oyfe> I'm sure they're all from the same batch but I'll open them all tonight and take photos
<Armbian-Discord> <A​oyfe> Where's the SPI chip?
<Armbian-Discord> <r​pardini> great question. never had to look for it
<Armbian-Discord> <A​oyfe> If anyone can tell me where to look for it, I'll snap the photos tonight
<Armbian-Discord> <I​doLi> Hey, I found this. https://github.com/ophub/amlogic-s9xxx-armbian/releases
<Armbian-Discord> <I​doLi> can someone explain to me how am I supposed to compile this?
<Armbian-Discord> <I​doLi> thanks.
<Armbian-Discord> <T​enkawa> https://github.com/ophub/amlogic-s9xxx-armbian
<Armbian-Discord> <T​enkawa> Directions are there
<Armbian-Discord> <r​pardini> Nope. That is an hostile repo using the "Armbian" name without authorization AFAIK. Use at your own risk
<Armbian-Discord> <T​enkawa> Yeah use at your own risk.. anything not .armbian.com
<Armbian-Discord> <I​doLi> this isn't the best solution but I think this is the only one available
<Armbian-Discord> <r​pardini> yep, but don't mention or ask questions here.
<Armbian-Discord> <I​doLi> okay so instead, could you help me find an alternative to armbian or an armbian distro that supports Amlogic S905X3?
<Armbian-Discord> <r​pardini> that's your best chance.
<Armbian-Discord> <I​doLi> okay
<Armbian-Discord> <I​doLi> thanks
<Armbian-Discord> <r​pardini> and READ SteeMan's wise words: https://forum.armbian.com/topic/17106-installation-instructions-for-tv-boxes-with-amlogic-cpus/
<Armbian-Discord> <I​doLi> ok
<Armbian-Discord> <r​pardini> Also, READ multiple times until you understand: https://forum.armbian.com/topic/16976-status-of-armbian-on-tv-boxes-please-read-first/
<Armbian-Discord> <r​pardini> tobetter's 5.x or 6.x trees have no mention of either old chip nor "new chip" -- they don't want you touching "their SPI NOR"
<Armbian-Discord> <r​pardini> goes touching HK's SPI NOR chip all over
<Armbian-Discord> <n​armstrong> Let’s touch it even harder
<Armbian-Discord> <r​pardini> yep, I'm patching (and a small detour to bump to 6.2-rc5)
<Armbian-Discord> <r​pardini> xt25f128b we had, I had... borrowed... either from chewitt's or Neil's tree...
<Armbian-Discord> <r​pardini> hopefully didn't mess up add for XT25Q64 in similar vein.
<Armbian-Discord> <r​pardini> building for @Aoyfe 's benefit, but build landed on a 4-core Neoverse, so it's gonna be ready... tomorrow 😉
<Armbian-Discord> <A​oyfe> Hahaha thank you
<Armbian-Discord> <r​pardini> keep your expectations low, I don't really know what I am doing 😉
<Armbian-Discord> <A​oyfe> The blind leading the blind then
<Armbian-Discord> <A​oyfe> I know even less
<Armbian-Discord> <A​oyfe> Also need to figure out how to restore the SPI contents to the 2 units I nuked figuring everything out
<Armbian-Discord> <A​oyfe> Do you think I could dd u-boot using HK Ubuntu?
<Armbian-Discord> <A​oyfe> Just to see if that part even works?
<Armbian-Discord> <r​pardini> you said you had mtd1/2/3/4 on vendor right?
<Armbian-Discord> <A​oyfe> On pboot. On HK Ubuntu it shows up a /dev/spidev0.0
<Armbian-Discord> <A​oyfe> Also the HK Ubuntu kernel is ancient too
<Armbian-Discord> <r​pardini> SPIDEV's something else.... although... the HC4 doesn't expose SPI on it's 5 pins
<Armbian-Discord> <r​pardini> pboot == vendor kernel
<Armbian-Discord> <A​oyfe> I bet both are vendor kernels of different age
<Armbian-Discord> <r​pardini> yep, all 4.9.x
<Armbian-Discord> <r​pardini> if mtd shows up on any, good chance my hackpatch will work
<Armbian-Discord> <r​pardini> since... I took it from there.
<Armbian-Discord> <A​oyfe> 🤮
<Armbian-Discord> <A​oyfe> Kernel so old
<Armbian-Discord> <A​oyfe> I'm actually surprised Talos hasn't jumped to 6.x yet
<Armbian-Discord> <r​pardini> what is it on?
<Armbian-Discord> <A​oyfe> Latest 5.x
<Armbian-Discord> <A​oyfe> Oh, not even latest. 5.15
<Armbian-Discord> <r​pardini> 5.15 is LTS.
<Armbian-Discord> <r​pardini> since 6.1 hasn't been confirmed as LTS (AFAIK)... 5.15 is the "latest LTS". So they're right
<Armbian-Discord> <A​oyfe> Yeah, I didn't realize 6.1 wasn't confirmed as LTS.
<Armbian-Discord> <r​pardini> still isn't: https://kernel.org/category/releases.html
<Armbian-Discord> <A​oyfe> So what's the difference between mtd and spidev?
<Armbian-Discord> <r​pardini> spidev are for generic spi stuff you connect to the gpio pins
<Armbian-Discord> <r​pardini> mtd is memory technology device, of which SPI NOR are one type of
<Armbian-Discord> <A​oyfe> But your thought is that maybe since there's no SPI stuff exposed on the pins in the HC4 that might be connected to the board's SPI NOR?
<Armbian-Discord> <r​pardini> no, where did you get that idea.
<Armbian-Discord> <A​oyfe> From you
<Armbian-Discord> <r​pardini> you misread. I sait it's funny that vendor exposes an SPIDEV, since the HC4 doesn't have the physical pins for that.
<Armbian-Discord> <r​pardini> probably just a mess, like everything else in that vendor.
<Armbian-Discord> <A​oyfe> Just getting black screen with blinking cursor.
<Armbian-Discord> <A​oyfe> Oh nevermind there it goes
<Armbian-Discord> <A​oyfe> What's the uname/pw?
<Armbian-Discord> <A​oyfe> nvm, figured it out
<Armbian-Discord> <A​oyfe> Same result as before.
<Armbian-Discord> <A​oyfe> Linux odroidhc4 6.2.0-rc5-meson64 so I'm definitely running the right thing.
<Armbian-Discord> <A​oyfe> Same log line in dmesg, no /dev/mtd* devices.
<Armbian-Discord> <c​0rnelius> you booting from eMMC?
<Armbian-Discord> <A​oyfe> sdcard yeah.
<Armbian-Discord> <A​oyfe> Sorry, I meant that for a DM, but oh well.
<Armbian-Discord> <T​enkawa> and the kernel does have the MTD devices in it right?
<Armbian-Discord> <c​0rnelius> lsblk
<Armbian-Discord> <A​oyfe> The existing ones, @rpardini was trying to hack at something to get the new one.
<Armbian-Discord> <T​enkawa> there are a lot of them
<Armbian-Discord> <r​pardini> dmesg | grep nor
<Armbian-Discord> <A​oyfe> Unrecognized, same as before.
<Armbian-Discord> <r​pardini> paste please
<Armbian-Discord> <A​oyfe> Picture's the best I can do, sec.
<Armbian-Discord> <T​enkawa> hwinfo should show the nor even if you have no driver as long as its exposed to the SoC
<Armbian-Discord> <A​oyfe> Just booting back up
<Armbian-Discord> <r​pardini> also grep it in petitboot please.
<Armbian-Discord> <A​oyfe> which package is hwinfo in?
<Armbian-Discord> <T​enkawa> its own
<Armbian-Discord> <A​oyfe> Is there something in specific we're looking for in hwinfo? It pukes a lot of data our
<Armbian-Discord> <T​enkawa> try hwinfo | grep -i nor | grep -iv minor
<Armbian-Discord> <T​enkawa> (I'm not sure if this "is" a nor device myself)
<Armbian-Discord> <T​enkawa> I see plenty of spi and mtd devices in these