Trouble booting in Gentoo
#11
(07-19-2021, 05:39 PM)wdt Wrote: Sometimes (but not that often) the dtb for a SPECIFIC device is appended to kernel,
but I doubt this is the case here
My pbp is setup this way (still)
using dd, copy 1st sector (mbr) somewhere, give name like emmc.mbr
copy 1st 16 MB somewhere (named as 1st-16.emmc.$DISTRO)
use something like dd if=/dev/emmc of=~/1st-16.emmc.manj bs=1M count=16,,,,, change emmc as appropriate
(that is emmc = mmcblk1 OR mmcblk2 OR maybe mmcblk0)
blank,,, dd if=/dev/zero  of=/dev/emmc bs=1M count=16
restore mbr,,,,, dd if=emmc.mbr of=/dev/emmc  (emmc.mbr should only be 512 bytes
(unless GPT ,, use 34 sectors,,,, dd default bs is 512 bytes so only need count)
So, if you check with fdisk /dev/emmc should all show correctly
Rest of 1st 16 M is /dev/zero,, blank,,,, so only uboot on SD can be used, it is the only one
If you want to restore just dd 1st-16M back to emmc
---edit---
I have never seen (unless very old) an arm device without dtb,
except for specific devices only, appended to kernel,,
so I think the gentoo is broken
Thank you, I will try when I get some more time!

(07-20-2021, 08:44 AM)Arwen Wrote: What we need is a minimal & bootable Gentoo image. I too wanted to use Gentoo, but had to give up because of the complexities on ARM64.

Plus, the kernel would be minimal too. Only activate actual hardware and software necessary to boot a Pinebook Pro. With the intent that a user would customize things after, (like adding CIFS support).
That would be great, honestly. Gentoo is my favorite distro, and I really wanted to have it on my pbp, even if it was just to try it out. I love the idea of essentially building the operating system and making it as minimal as possible, only having things you need or want.
  Reply
#12
(07-19-2021, 10:58 PM)wdt Wrote: @moonwalkers
Do you know?
is this something internal to the uboot or is there an arm compiled  menu.c32  ?

AFAIK it's something specific to u-boot binaries, not menu. Also AFAIK menu.c32 is specific to syslinux, and it's just a config file. In my case I made no changes to /boot/extlinux/extlinux.conf (which is config file I use to boot), only ran `sudo u-boot-install-rockchip /dev/mmcblk2` to actually install u-boot in eMMC after installing u-boot-rockchip package from Debian Experimental.
This message was created with 100% recycled electrons
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Migrating from glibc to musl on Gentoo pkubaj 6 266 07-24-2021, 05:00 PM
Last Post: pkubaj
  Manjaro wont recognize eMMC after booting with it disabled peasant 1 255 06-27-2021, 02:39 AM
Last Post: Arwen
  Gentoo on Pinebook Pro RELEASE jannik2099 49 40,200 06-08-2021, 12:45 PM
Last Post: alchemist
  NVMe timeout when booting from eMMC but not SD satwell 4 1,648 05-06-2021, 10:12 AM
Last Post: alexeymin
  UBOOT - Mainline not booting from SD card / BSP OK Anarethos 1 924 01-10-2021, 12:33 AM
Last Post: Anarethos
  eMMC Trouble After Flashing WRONG Image balin 7 2,073 12-29-2020, 04:24 PM
Last Post: KC9UDX
  Graphic problems when booting Debian crecker 1 1,181 12-15-2020, 06:39 PM
Last Post: marszal
  Pinebook Pro not Booting at All eMMC or MicroSD AstroCEO 21 11,193 07-27-2020, 07:49 AM
Last Post: tophneal
  PBP SD Card not booting images/IO-Errors(?!) Mikatale 4 2,222 07-03-2020, 11:08 PM
Last Post: wdt
Question Mount eMMC after booting from SD card Feakster 3 2,164 03-16-2020, 02:36 PM
Last Post: lxn

Forum Jump:


Users browsing this thread: 1 Guest(s)