xypron changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot 2023.01 / Merge Window is OPEN / Release v2023.04 is scheduled for 2023-04-03 / Channel archives at https://libera.irclog.whitequark.org/u-boot
lucenera has joined #u-boot
<marex> shyeline: what is the error ?
<shyeline> The console output is in the pastebin
<marex> shyeline: there is about 50 different errors in that paste, which one of them ?
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #u-boot
mncheck has quit [Ping timeout: 260 seconds]
mmu_man has quit [Ping timeout: 256 seconds]
Leopold has quit [Ping timeout: 255 seconds]
<shyeline> Oh i haven't noticed any other than 8 of the "
<shyeline> No FDT memory address configured"
<marex> shyeline: oh that one ... is /boot/boot.scr content available somewhere too ?
<marex> "Loading Environment from FAT... Unable to use mmc 0:1..." ... could it be that your SD/eMMC content is corrupted in some way ?
<marex> "Failed to load '/boot/uImage'" same here ... is uImage on your boot media and is it even valid ?
<shyeline> From the posts that I've read i think i have made the terrible mistake of updating the software via command. It was kinda slow so I did reboot command and the board since than won't start.
<marex> well OK, is the board booting from SD card which you can remove and rewrite, or from eMMC ?
<shyeline> I was running armbian jammy edge and ran apt upgrade. It is booting from sd card but i cannot rewrite it without somehow copying my pterodactyl panel data
Leopold has joined #u-boot
<marex> shyeline: can you break into the u-boot shell ? (press space on boot a few times, you'll get a command prompt)
<marex> then do some ... => mmc dev 0 ; mmc info ; ls mmc 0:1 ; ls mmc 0:1 /boot/ and let's see what's in there
<shyeline> Mmc dev 0 with or without ;
<marex> => mmc dev 0 ; mmc info ; ls mmc 0:1 ; ls mmc 0:1 /boot/
<marex> without the => , that's shell prompt prefix
<marex> the ; behaves same as bourne shell, it runs the commands in sequence and ignores their return value
<shyeline> do i pastebin or just paste the output
<marex> pastebin please , or paste.debian.net which seems to be collecting less stuff on you
<marex> shyeline: try this
<marex> shyeline: => printenv fdt_addr_r
<marex> that should print one line of output
<shyeline> fdt_addr_r=0x4FA00000
<shyeline> god i love smart people, you guys are life savers
<shyeline> oh also, i tried the solutions on armbian docs > troubleshoot
<marex> shyeline: my guess is that this https://github.com/armbian/build/blob/master/config/bootscripts/boot-sunxi.cmd#L34 here is still triggered fine
<marex> and this https://github.com/armbian/build/blob/master/config/bootscripts/boot-sunxi.cmd#L61 is called with fdt_addr_r unset (for whatever reason)
<shyeline> i can mount that sdcard and i did fsck on it, but it said the system is fine
<marex> and all the other fdt ... command calls then just keep failing one after the other with the "FDT addr not set" message
<marex> shyeline: can you do "=> printenv" and pastebin that ?
<marex> shyeline: also ... => load mmc 0:1 $loadaddr boot/armbianEnv.txt && md $loadaddr $filesize
<shyeline> ofc i can, http://paste.debian.net/1267853/
<marex> maybe there is something odd in that armbianenv.txt file
<shyeline> http://paste.debian.net/1267854/ for the load
<marex> shyeline: did it print all that ?
<marex> can you do ... load mmc 0:1 $loadaddr boot/armbianEnv.txt && printenv filesize
<marex> ?
<marex> er, nevermind
<marex> 180 x4 since mw operates on 32bit words is 0x2d0
<shyeline> magic words wise man, tell me your instructions, i love you already
flyback has quit [Ping timeout: 255 seconds]
<shyeline> okay...
<marex> shyeline: well, 'does => load mmc 0:1 ${fdt_addr_r} ${prefix}dtb/${fdtfile} ' pass ?
<marex> does it load the DT (there should be some output, loaded ... bytes) ?
thopiekar_ has quit [Ping timeout: 260 seconds]
<marex> shyeline: '=> load mmc 0:1 ${fdt_addr_r} ${prefix}dtb/${fdtfile} '
<shyeline> Failed to load 'dtb/allwinner/sun50i-h616-orangepi-zero2.dtb'
thopiekar has joined #u-boot
<marex> shyeline: try '=> load mmc 0:1 ${fdt_addr_r} boot/dtb/${fdtfile} '
<shyeline> 23441 bytes read in 5 ms (4.5 MiB/s)
<marex> and I assume '=> fdt addr ${fdt_addr_r}' also works ?
<shyeline> no output
flyback has joined #u-boot
<marex> shyeline: fdt pri / compatible
<marex> shyeline: should print something like sun50i...
<shyeline> compatible = "xunlong,orangepi-zero2", "allwinner,sun50i-h616"
<marex> super
<marex> shyeline: OK ... it seems like something is botched with the boot script
<marex> you could try and run it line-by-line and see what happens
<marex> except before you do, you need to
<marex> => setenv devtype mmc
<marex> => setenv devnum 0:1
<marex> that emulates the distro boot command env in U-Boot
<marex> and then just , start at https://github.com/armbian/build/blob/master/config/bootscripts/boot-sun50i-next.cmd#L7 (line 7) and copy-paste it into the shell, line by line
<marex> you can skip line 23 , that test evaluates to 1, so just run line 24,25
<marex> ignore line 28..34, just run this instead:
<marex> => setenv consoleargs "splash=verbose console=ttyS0,115200"
<shyeline> when i was trying things on my own i checked the files listen in 'bash session' but the file naming system doesn't exist anymore but i found simmilar files
<shyeline> the things iam thing about is this: https://docs.armbian.com/User-Guide_Recovery/#replacing-boot
<shyeline> all the names had something like 20.08.y but one was 20.10 and i think it is the one that fucked it up
<shyeline> but i am sure your idea is better, do i paste all outputs?
<marex> it is well possible the /boot contains some incompatible stuff, sure
<marex> it's really up to you whether you want to debug this, or whether you want to just reinstall the system
<marex> I suspect if you proceed through the boot script, you would be able to load the kernel image, ramdisk, fdt into memory and start the system by hand, and once in Linux, you can fix the /boot content with apt install or whatever
<shyeline> well iam at line 11
<marex> shyeline: proceed until line 46 as per above, that should be simple enough
<shyeline> iam ignoring the comments like "# Print boot source" right?
<marex> sure
<marex> after the 'fdt resize', skip all the way to line 73 , then stop at line 76 and please share output
<shyeline> line 24 Failed to load 'armbianEnv.txt'
<marex> ah
<marex> => setenv prefix /boot/
<marex> then re-run line 24
<marex> works ?
<shyeline> yup
<shyeline> do i run 38
<shyeline> line 38*
<marex> yes
<marex> => if test "${devtype}" = "mmc"; then part uuid mmc 0:1 partuuid; fi
<marex> like that ^
<marex> or just '=> part uuid mmc 0:1 partuuid'
<shyeline> thats the output
<shyeline> do i run line 77?
goliath has quit [Quit: SIGSEGV]
<shyeline> Hey @marex
<marex> dang, connection dropped
<marex> shyeline: that looks fantastic, please do run line 77, yes
<shyeline> [FAILED] Failed to start Access poi…server for Wi-Fi and Ethernet.
<shyeline> wait i had my eth0 unplugged
<marex> well that's Linux userspace already
<marex> you should be able to log into the thing now
<shyeline> anything i should worry about? https://www.irccloud.com/pastebin/VJgo8GrB/
<shyeline> okay how do i make sure that it won't happen again if i would to sudo reboot
<marex> shyeline: I'm not familiar with armbian
<marex> shyeline: you probably want to install / reinstall the kernel packages and DT packages
<marex> dpkg -l | grep linux ... I guess
<marex> maybe some apt update ; apt full-upgrade ?
<marex> shyeline: if it happens again, you know how to at least boot the machine manually and where is the boot script
<marex> then ask the armbian people whether they maybe have a bug in their repositories (?)
<shyeline> do i paste you the dpkg command output or am i alone in it rn?
<shyeline> also, can i just unplug the serial port adapter now and switch to ssh or do i have to change something
<marex> in case the board fails to boot, you want to retain serial console access to recover it
<marex> as for the dpkg command, you can paste it, I likely cannot tell you whether the output is OK or not
<marex> there might be an #armbian channel here or on OFTC however
<shyeline> yeah it is here on libera but pretty much dead
<marex> [ Kernel and firmware upgrades disabled: armbian-config ]
<marex> that's what the last paste contains
<marex> is that correct ?
<shyeline> yeah it is frozen by default
<shyeline> 3:17 AM <marex> => setenv devtype mmc
<shyeline> so i start here if anything goes wrong? i need to make a file with the commands
<marex> yes
<marex> I think this is just about it
<shyeline> u are a godsent
<shyeline> can i tip u somewhere? do u have a revolut link.
<shyeline> thank you very much
<marex> you're welcome
<shyeline> Hey i did full-upgrade and i got
<shyeline> [ Kernel was updated, please reboot ]
<marex> cool
<marex> maybe that helps
<shyeline> Okay gonan try it out tommorw cuz its 4:20 am here. Gonna take a nap
<shyeline> Thank you once again, you are a godsent
<shyeline> Wait last question, if i would to place a ; between every command in that bin thay you made me. Would it just boot?
<shyeline> If i paste it in
<marex> nope
<marex> the shell line length is limited to something like 1024 characters (depends on U-Boot configuration)
<marex> the entire script is longer than that
<marex> if you do have a simple(r) trivial script , you can do 'command1 ; command2 ; command3'
<marex> you can also do 'command1 && command2 && command3' , where each subsequent command would only be executed if the previous one succeeded
<shyeline> And limit one "command" to be no longer than 1024 char
<shyeline> Make like 3 or 4 and that would be 4 pastes to get it back up and try fixing it again?
<marex> probably, sometimes if you do things like this on your host PC:
<marex> $ echo "command1 && long command2 args .... " > /dev/ttyUSBn
<marex> the USB serial adapter is too fast and may overflow the receiving UART (on the orangepi) FIFO, so you would in fact get corrupted paste into the console
<marex> there are now ways to partly mitigate that, there is a chance your board has that enabled, so ... you can try it and see what happens
<shyeline> Well i was using putty so yeah it was kinda slow when i tried to type the commands u gave me, had to paste em. Gonna try tommorow if it brake while rebooting
<shyeline> Hey really last question, can i kill a board while using u-boot?
<marex> yes
<marex> but I think that's not really the right question here
<marex> basically U-Boot gives you full unlimited access to the hardware from software perspective
<marex> you can write any register without any restrictions
<marex> that includes something which may permanently damage the hardware
<marex> I think what you want to ask is ... can you do some permanent damage to this particular board while using U-Boot without too much deliberate effort
<marex> no
<shyeline> Yeah that's a relief, thanks
<shyeline> So if the board on any kernel newer than 5.4.y has wifi not working is it linux or uboot fixable?
<marex> most likely linux issue, see if $ dmesg | grep -i firmware prints anything
<marex> maybe the firmware is missing
<shyeline> Yeah it is like, not much
<marex> I think that's the one
<marex> so I guess you either want some apt-cache search for this wifi driver in armbian repos (there might be something)
<marex> the firmware part would produce a .ko module , so load that and see what happens
<shyeline> Okay, gonna have fun tomorrow, goodnight
<marex> bye
vagrantc has quit [Quit: leaving]
Wouter010067 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067 has joined #u-boot
ikarso has joined #u-boot
mncheckm has joined #u-boot
ldevulder has joined #u-boot
ElementW has quit [Quit: No Ping reply in 180 seconds.]
ElementW has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
sszy has joined #u-boot
guillaume_g has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
matthias_bgg has joined #u-boot
lucenera6 has joined #u-boot
lucenera has quit [Ping timeout: 256 seconds]
lucenera6 is now known as lucenera
monstr has joined #u-boot
stefanro has quit [Remote host closed the connection]
stefanro has joined #u-boot
apritzel has joined #u-boot
matthias_bgg has quit [Quit: Leaving]
kwizart has joined #u-boot
Wouter010067 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067 has joined #u-boot
prabhakarlad has joined #u-boot
mmu_man has joined #u-boot
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #u-boot
goliath has joined #u-boot
mmu_man has quit [Ping timeout: 260 seconds]
Leopold_ has joined #u-boot
Leopold has quit [Ping timeout: 255 seconds]
mmu_man has joined #u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
mmu_man has quit [Ping timeout: 265 seconds]
Leopold has joined #u-boot
Leopold_ has quit [Quit: No Ping reply in 180 seconds.]
___nick___ has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
Leopold has quit [Remote host closed the connection]
mmu_man has joined #u-boot
Leopold has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
mncheckm has quit [Read error: Connection reset by peer]
alpernebbi has quit [Ping timeout: 252 seconds]
alpernebbi has joined #u-boot
mthall has quit [Ping timeout: 256 seconds]
mthall has joined #u-boot
Leopold has quit [Remote host closed the connection]
monstr has quit [Remote host closed the connection]
Leopold has joined #u-boot
guillaume_g has quit [Quit: Konversation terminated!]
mthall has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<macromorgan> anyone else have an issue with Arm Trusted Firmware for Rockchip after the binman changes? I can see it in my fit but it didn't get called.
Wouter010067 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067 has joined #u-boot
Gravis has quit [Ping timeout: 256 seconds]
Gravis has joined #u-boot
Leopold has quit [Ping timeout: 255 seconds]
Leopold has joined #u-boot
Leopold has quit [Remote host closed the connection]
Leopold has joined #u-boot
vagrantc has joined #u-boot
apritzel has quit [Ping timeout: 252 seconds]
naoki has quit [Quit: naoki]
ikarso has quit [Quit: Connection closed for inactivity]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<sjg1> macromorgan: Yes...there are patches today from Jonas
<macromorgan> okay cool, haven't seen those yet
Wouter010067 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067 has joined #u-boot
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
vagrantc has quit [Quit: leaving]
ikarso has joined #u-boot
___nick___ has quit [Ping timeout: 252 seconds]
naoki has joined #u-boot
vagrantc has joined #u-boot
naoki has quit [Ping timeout: 252 seconds]
naoki has joined #u-boot
bq is now known as nz
Leopold has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
Leopold has joined #u-boot
Gravis has quit [Ping timeout: 246 seconds]
Leopold has quit [Quit: No Ping reply in 180 seconds.]
Gravis has joined #u-boot
Leopold has joined #u-boot
Gravis has quit [Ping timeout: 256 seconds]
Gravis has joined #u-boot
Gravis has quit [Ping timeout: 256 seconds]
Gravis has joined #u-boot
<shyeline> Hey @marex after rebooting the only thing iam getting in serial is https://www.irccloud.com/pastebin/FVVd8CoU
<shyeline> But if i remember correctly we were booting into mmc0 yesterday
<shyeline> Mmc0:1
hanetzer has quit [Ping timeout: 260 seconds]
hanetzer has joined #u-boot
vagrantc has quit [Quit: leaving]