christianhaitian / arkos

Another rockchip Operating System
MIT License
1.45k stars 83 forks source link

ArkOs doesnt Boot in RGB30 #894

Closed kenavru closed 7 months ago

kenavru commented 7 months ago

ArkOS_RGB30_v2.0_10162023.img As in topic, just got new black RGB30 from aliexpress, JelOs works fine. ArkOS doesnt even boot. Got black screen and green led - like with no SD card at all. Tried 6 different cards, even one that came with console, RGB30 doesnt even try to boot it. XZ uncompressed. Tried on windows with win32diskimager and that one sugested by you. Also DD with linux - same effect. Partitions looks fine image Even swaped dts file with no OC and ones from jelos - no change.

It looks like Boot partition is not found by RGB30. the one from jelos has some additional flag ? marked as Active image

christianhaitian commented 7 months ago

Sounds like you may have a unit that just won't boot ArkOS without reducing the clock speed, however, those usually at least show the ArkOS boot logo first. From your description, it seems like the unit acts like it doesn't even see the sd card at all. Are you using a Samsung or Sandisk sd card? You mention 6 different sd cards but never mention the make of any of them.

As another test, you can try extracting the uInitrd from attached file and copy it to the BOOT partition overwriting the existing one and see if that makes a difference. It forces the unit to boot from the root partition.

uInitrd_force_root.zip

kenavru commented 7 months ago

sandisk ultra 32GB kioxia exceria 16GB U1 A1 Kioxia from RGB30 jelos Kingston canvas 128GB Samsung EVO 32GB all the same. Ofc. flashing Jelos on em works like a harm.

prepearing fresh ark card and will try what you sugested.

I may also try to copy data from 4/5 partition over jealos partitions ...

is there any bare-minimum OS that will just show a splashscreen or someting on LCD ?

kenavru commented 7 months ago

nope force_root does nothing.

christianhaitian commented 7 months ago

The fact that you don't even get the splash screen makes me think something else is going on here. Have you tried USB IT to flash the sd card?

https://www.alexpage.de/usb-image-tool/download/

kenavru commented 7 months ago

yep, same thing. Also redownloaded and DD it on linux. Same.

btw bot partition looks quile different image

kenavru commented 7 months ago

hah, booted, got arkOS LOGO.

only when i copied content of 3rd partition over jealos as on screen.

so problem is with partition table of ArkOs image. My RGB30 cant see boot partition within ArkOS layout.

jelos Device Start End Sectors Size Type /dev/sda1 16384 24575 8192 4M Linux filesystem /dev/sda2 24576 32767 8192 4M Linux filesystem /dev/sda3 32768 4227071 4194304 2G EFI System /dev/sda4 4227072 30228446 26001375 12.4G Linux filesystem

vs ArkOs

Device Start End Sectors Size Type /dev/sdb1 16384 24575 8192 4M unknown /dev/sdb2 24576 32767 8192 4M unknown /dev/sdb3 32768 237567 204800 100M Microsoft basic data /dev/sdb4 237568 15445614 15208047 7.3G Microsoft basic data /dev/sdb5 15446016 15601630 155615 76M Microsoft basic data

kenavru commented 7 months ago

Solution

sudo sfdisk /dev/sdc 4 --part-type EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 sudo sfdisk /dev/sdc 3 --part-type EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

changing partition type fixed it for me. Dunno how many ppl tested it and why it works for someone that way ...

IMG20240105181352

christianhaitian commented 7 months ago

Interesting.

kenavru commented 7 months ago

ok, not solved - still doesnt boot after restart ... just blind-luck boot was that time probably xD cant make it boot again.

ArkOs copied over jelos boots fine every single time

kenavru commented 7 months ago

or it may be this ... https://www.reddit.com/r/PowKiddy/comments/18117q1/rgb30_arkos_black_screen_on_reboot/ https://youtu.be/KjoHK29iZFk?t=327 edit: Nope, nothing on screen, no response on HDMI.

kenavru commented 7 months ago

totaly no idea ... will pass for now, I'm reflashing for half a day ;D looks like jelos is only thing that always boots.

christianhaitian commented 7 months ago

Understood. Thanks for taking time to try and figure it out. Enjoy

kenavru commented 7 months ago

my last 2 suspects are:

  1. some lose bits of random data on not clean SD card - that prevents rk3566 to boot.
  2. it has totaly different uboot than Jelos. ArkOs with Jelos uboot always boots, at least to splashscreen ;p
christianhaitian commented 7 months ago

ArkOS does use the JELOS uboot as default.

christianhaitian commented 7 months ago

For Deep Sleep, you can switch to the Anbernic uboot if the unit can reliably support it.

kenavru commented 7 months ago

ArkOS does use the JELOS uboot as default.

well they look 80% different for me, as just extracted em ;) will check out tomorrow ;p

christianhaitian commented 7 months ago

you may be talking about the gpt file system structure. The uboot used between JELOS and initial boot of ArkOS are the similar:

JELOS: https://github.com/JustEnoughLinuxOS/rk356x-uboot ArkOS: https://github.com/christianhaitian/rk356x-uboot

kenavru commented 7 months ago

ok, swaping uboot/layout from jelos to ark gives nothing, so can remove point 2..

also swaping first 16KB of SD space between Jelos and Ark changes nothing.(well it broke partition table ofc :D) Same thing with partition types, Jelos with types from arkOs still boots just fine xD

insane

christianhaitian commented 7 months ago

See if replacing the rk3566-OC.dtb file in the BOOT partition with the one within the attached zip file allows it to boot and is stable. It reduces the max speed of the soc to 1.4Ghz. Not ideal for emulation above ps1. rk3566-OC.zip

kenavru commented 7 months ago

nope, i checked many other dtb - no change. It doesnt get to that point to load it. RGB30 has a serial console pins to hook to ?

christianhaitian commented 7 months ago

I can't tell from this pic. https://raw.githubusercontent.com/christianhaitian/arkos/main/pics/rgb30/20230913_153334_resized.jpg

kenavru commented 7 months ago

looks like it doesnt ;( will be hard to debug this problem

ILikeIneine commented 7 months ago

I got the same problem. I can only see arkos logo when I flashed the os image to the sd card at the first time I launched the rgb30. And then, after it set the partition and auto reboot, the screen will always be black with green led lights on. Nothing would happen:(

kenavru commented 7 months ago

@ILikeIneine managed to get it work ?

ILikeIneine commented 7 months ago

@ILikeIneine managed to get it work ?

No, I installed jelos. Have you solved it?

ILikeIneine commented 7 months ago

Yeah! I fixed it in a rather weird way...

I tried another tf card and flashed the arkos, it successfully booted. I back up the whole tf disk to a image file. (I do this with disk genius) and this completely dump the structure of the workable
arkos.

Then I restore the image to the previous tf card that wouldn't properly work. It just mirrored all the disk structures and files. But when I insert it to rgb30, logo appeared and successfully booted.

All I've done was just dump the tf card that could install arkos and launched correctly to the tf card that would fail to install and boot arkos . If u need, I can share my self-made image.

image

info: back up disk to image info: restore disk from image file @kenavru

kenavru commented 7 months ago

I also think its something with patritioning (or raw img structure) on SD card, as copyng BOOT partition content from ArkOS into jelos - also works and boots.

kenavru commented 7 months ago

@ILikeIneine you can put image somewhere. Not single one of my cards (checked 14 different ;D) boots it.

vivre30 commented 5 months ago

Hi @ILikeIneine @kenavru Did your RGB30 is the new one with the colored ABXY?

I got problem as well, but mine still can boot to ArkOS by pressing reload/reset button If not, will be blank after ArkOS logo. here is my vid on reddit : https://www.reddit.com/r/PowKiddy/comments/1bilrsb/rgb30_arkos_wont_installboot_without_press/

and can you share your working image @ILikeIneine to me, thanks