Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't install gentoo on raspberry pi2 [solved]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Mon Apr 27, 2020 3:41 am    Post subject: can't install gentoo on raspberry pi2 [solved] Reply with quote

Hi,

I am having a heck of a time trying to install Gentoo on raspberry pi2.
Has anyone here been able to install Gentoo on raspberry pi?

Where are comprehensive instructions on installing Gentoo on raspberry pi2?

Thanks for your help,

donjames


Last edited by donjames on Sat May 16, 2020 10:46 pm; edited 2 times in total
Back to top
View user's profile Send private message
dartleader
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2019
Posts: 119

PostPosted: Mon Apr 27, 2020 4:16 am    Post subject: Reply with quote

Hi donjames,

Have you seen the wiki page for raspberry pi?
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Mon Apr 27, 2020 7:13 am    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on ARM.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Mon Apr 27, 2020 9:10 am    Post subject: Reply with quote

donjames,

Which Model Pi?
If its a Pi3 or Pi4, in 32 bit or 64 bit mode?
If its a Pi4, how much RAM?

I have had Gentoo installed on one of the original Pis, with 256Mb RAM.
I didn't try a desktop on that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Mon Apr 27, 2020 12:51 pm    Post subject: Installing Gentoo of raspberry pi. Reply with quote

Hi,

I have the 32-bit raspberry pi 2 with 1 gigabye of ram. No desktop. Command line only.

I tried to follow the instructions here: https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide#Preparing_the_SD_card.

There seems to be something missing -- detailed instructions for partitioning and formatting the disk. I have a 32gb sd card.

My sdcard format:
Code:
Disk /dev/sdb: 29.74 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Flash Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc20285c1

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdb1  *       2048   4196351    4194304    2G  c W95 FAT32 (LBA)
/dev/sdb2       4196352  8390655    4194304    2G 82 Linux swap / Solaris
/dev/sdb3       8390656  62333951  53943296   25.7G 83 Linux

###### end of sd card format ######

File system same as that in the quick install guide:
root # mkfs.vfat -F 16 /dev/mmcblk0p1
root # mkswap /dev/mmcblk0p2
root # mkfs.ext4 /dev/mmcblk0p3

Is this the correct format?

Thanks,

donjames

code tags added by NeddySeagoon


Last edited by donjames on Mon Apr 27, 2020 5:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Mon Apr 27, 2020 3:48 pm    Post subject: Reply with quote

donjames,

That's fine but the partition types in the partition table do not reflect the actual filesystem that may be on the partition.
The quick install guide omits a number of steps.
The Raspberry Pi page is more complete.

With absolutely no fanfair whatsoever, later Pi2s used the Pi3 64 bit capable ARM CPU to reduce the cost.
If you can read the fine print on the board, or the top of the CPU, we can see if you have one of those.
Otherwise, you need to read it out of /proc/cpuinfo.
That's just an interesting aside until it boots.

What happens when you boot your SD card?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Mon Apr 27, 2020 5:58 pm    Post subject: can't install gentoo on raspberry pi Reply with quote

Hi,

File system same as that in the quick install guide:

root # mkfs.vfat -F 16 /dev/sdb1
root # mkswap /dev'sdb2
root # mkfs.ext4 /dev/sdb3

Is this correct?

Is there a pre-compiled image that I can just copy on to the raspberry pi 2?

I haven't been able to boot the sd card. Well, not with gentoo. Should I write a disk image onto it to see which cpu it is running?



donjames
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Mon Apr 27, 2020 7:06 pm    Post subject: Reply with quote

donjames,

What happens when you boot with Gentoo?

In the Pi /boot, what does
Code:
 ls -l
show?
What do you have in config.txt ?
What do you have in cmdline.txt ?

The boot sequence should be steady red light, flickering green light as the SD card is read, rainbow, black screen for what seems far too long, then console messages once root has mounted.
The console driver is compiled as a module in the default kernel, so there are no boot messages until root is mounted and the console driver module loaded.

What is the last part of the boot sequence you see?

The CPU doesn't matter at this stage. That's fine tuning later.

I'm not aware of a 32 bit boot and go Pi image. The folks in #gentoo-arm on freenode may have something they can share.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Mon Apr 27, 2020 8:06 pm    Post subject: Installing Gentoo on raspberry pi. Reply with quote

NeddySeagoon,

cmdline.txt:
Code:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait


#### end #####

No config.txt.

The raspberry pi doesn't boot with gentoo.

Regards,

donjames

code tags added by NeddySeagoon
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Mon Apr 27, 2020 8:39 pm    Post subject: Reply with quote

donjames,

What about the content of /boot as shown by
Code:
ls -l


Quote:
The raspberry pi doesn't boot with gentoo
is not very helpful.
I described the visible boot sequence. How much do you see?

As your cmdline.txt contains
Code:
console=ttyAMA0,115200
you will get a serial console to start with.
Do you have a USB to 3.3v serial adaptor?

No config.txt should be safe. The automatics will do the right thing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Mon Apr 27, 2020 9:02 pm    Post subject: Reply with quote

NeddySeagoon,

I don't have a usb to 3.3v serial adaper. I ordered a usb to 3.3v serial adapter.

No boot at all, just a blank screen.

How do I make this device boot to the video (hdmi)?

Regards,

donjames
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Mon Apr 27, 2020 10:15 pm    Post subject: Reply with quote

donjames,

Put the SD card into whatever device you used to make it.

Mount the Pis /boot
Post
Code:
ls -l <Pi_Boot>


Noting at all, not even a rainbow, usually means that the Pi cannot read the firmware files from /boot.

Your boot should look something like ...
Code:
/usr/aarch64-unknown-linux-gnu/usr/src/pi_firmware # ls boot -l
total 51728
-rw-r--r-- 1 root root    23983 Feb 15 12:47 bcm2708-rpi-b.dtb
-rw-r--r-- 1 root root    24246 Feb 15 12:47 bcm2708-rpi-b-plus.dtb
-rw-r--r-- 1 root root    23764 Feb 15 12:47 bcm2708-rpi-cm.dtb
-rw-r--r-- 1 root root    23688 Feb 15 12:47 bcm2708-rpi-zero.dtb
-rw-r--r-- 1 root root    24424 Feb 15 12:47 bcm2708-rpi-zero-w.dtb
-rw-r--r-- 1 root root    25310 Feb 15 12:47 bcm2709-rpi-2-b.dtb
-rw-r--r-- 1 root root    25459 Apr 27 22:56 bcm2710-rpi-2-b.dtb
-rw-r--r-- 1 root root    26500 Apr 27 22:56 bcm2710-rpi-3-b.dtb
-rw-r--r-- 1 root root    27119 Apr 27 22:56 bcm2710-rpi-3-b-plus.dtb
-rw-r--r-- 1 root root    25314 Apr 27 22:56 bcm2710-rpi-cm3.dtb
-rw-r--r-- 1 root root    41108 Apr 27 22:56 bcm2711-rpi-4-b.dtb
-rw-r--r-- 1 root root    52360 Apr 27 22:56 bootcode.bin
-rw-r--r-- 1 root root    18693 Apr  9  2016 COPYING.linux
-rw-r--r-- 1 root root     3151 Apr 27 22:56 fixup4cd.dat
-rw-r--r-- 1 root root     5398 Apr 27 22:56 fixup4.dat
-rw-r--r-- 1 root root     8417 Apr 27 22:56 fixup4db.dat
-rw-r--r-- 1 root root     8413 Apr 27 22:56 fixup4x.dat
-rw-r--r-- 1 root root     3151 Apr 27 22:56 fixup_cd.dat
-rw-r--r-- 1 root root     7272 Apr 27 22:56 fixup.dat
-rw-r--r-- 1 root root    10261 Apr 27 22:56 fixup_db.dat
-rw-r--r-- 1 root root    10263 Apr 27 22:56 fixup_x.dat
-rw-r--r-- 1 root root  5466824 Apr 27 22:56 kernel7.img
-rw-r--r-- 1 root root  5801056 Apr 27 22:56 kernel7l.img
-rw-r--r-- 1 root root 13945344 Apr 27 22:56 kernel8.img
-rw-r--r-- 1 root root  5158072 Apr 27 22:56 kernel.img
-rw-r--r-- 1 root root     1594 Dec  3 12:41 LICENCE.broadcom
drwxr-xr-x 2 root root    12288 Apr 27 22:56 overlays
-rw-r--r-- 1 root root   799836 Apr 27 22:56 start4cd.elf
-rw-r--r-- 1 root root  3743076 Apr 27 22:56 start4db.elf
-rw-r--r-- 1 root root  2252288 Apr 27 22:56 start4.elf
-rw-r--r-- 1 root root  3011076 Apr 27 22:56 start4x.elf
-rw-r--r-- 1 root root   799836 Apr 27 22:56 start_cd.elf
-rw-r--r-- 1 root root  4814916 Apr 27 22:56 start_db.elf
-rw-r--r-- 1 root root  2976416 Apr 27 22:56 start.elf
-rw-r--r-- 1 root root  3734692 Apr 27 22:56 start_x.elf
Thats hot off the press from a git pull at 11:00 PM BST.

You must have
Code:
-rw-r--r-- 1 root root    25310 Feb 15 12:47 bcm2709-rpi-2-b.dtb
-rw-r--r-- 1 root root    25459 Apr 27 22:56 bcm2710-rpi-2-b.dtb
-rw-r--r-- 1 root root    52360 Apr 27 22:56 bootcode.bin
-rw-r--r-- 1 root root     3151 Apr 27 22:56 fixup_cd.dat
-rw-r--r-- 1 root root     7272 Apr 27 22:56 fixup.dat
-rw-r--r-- 1 root root    10261 Apr 27 22:56 fixup_db.dat
-rw-r--r-- 1 root root    10263 Apr 27 22:56 fixup_x.dat
-rw-r--r-- 1 root root  5466824 Apr 27 22:56 kernel7.img
-rw-r--r-- 1 root root   799836 Apr 27 22:56 start_cd.elf
-rw-r--r-- 1 root root  4814916 Apr 27 22:56 start_db.elf
-rw-r--r-- 1 root root  2976416 Apr 27 22:56 start.elf
-rw-r--r-- 1 root root  3734692 Apr 27 22:56 start_x.elf


bootcode.bin gets everything started. The ARM CPU is held in reset while the GPU loads and executes bootcode.bin
bootcode.bin uses one of the fixup and start files and eventually loads kernel7.img, one of the .dtb files and cmdline.txt into RAM.
It then releases the ARM CPU from reset.
Before it gets to releasing the ARM CPU from reset, it draws the rainbow.

While you are looking at the Pi SD card, mount its root filesystem and check that it contains /lib/modules, which in turn needs to contain
4.19.118+ 4.19.118-v7+ 4.19.118-v7l+ 4.19.118-v8+
That's the matching modules for the four kernels in /boot.
The 118+ is the latest up to the minute version. If they are missing, so is your console driver, so you would get rainbow followed by a blank screen.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Mon Apr 27, 2020 11:00 pm    Post subject: Reply with quote

NeddySeagoon wrote:
donjames,

Put the SD card into whatever device you used to make it.

Mount the Pis /boot
Post
Code:
ls -l <Pi_Boot>


Noting at all, not even a rainbow, usually means that the Pi cannot read the firmware files from /boot.

Your boot should look something like ...
Code:
/usr/aarch64-unknown-linux-gnu/usr/src/pi_firmware # ls boot -l
total 51728
-rw-r--r-- 1 root root    23983 Feb 15 12:47 bcm2708-rpi-b.dtb
-rw-r--r-- 1 root root    24246 Feb 15 12:47 bcm2708-rpi-b-plus.dtb
-rw-r--r-- 1 root root    23764 Feb 15 12:47 bcm2708-rpi-cm.dtb
-rw-r--r-- 1 root root    23688 Feb 15 12:47 bcm2708-rpi-zero.dtb
-rw-r--r-- 1 root root    24424 Feb 15 12:47 bcm2708-rpi-zero-w.dtb
-rw-r--r-- 1 root root    25310 Feb 15 12:47 bcm2709-rpi-2-b.dtb
-rw-r--r-- 1 root root    25459 Apr 27 22:56 bcm2710-rpi-2-b.dtb
-rw-r--r-- 1 root root    26500 Apr 27 22:56 bcm2710-rpi-3-b.dtb
-rw-r--r-- 1 root root    27119 Apr 27 22:56 bcm2710-rpi-3-b-plus.dtb
-rw-r--r-- 1 root root    25314 Apr 27 22:56 bcm2710-rpi-cm3.dtb
-rw-r--r-- 1 root root    41108 Apr 27 22:56 bcm2711-rpi-4-b.dtb
-rw-r--r-- 1 root root    52360 Apr 27 22:56 bootcode.bin
-rw-r--r-- 1 root root    18693 Apr  9  2016 COPYING.linux
-rw-r--r-- 1 root root     3151 Apr 27 22:56 fixup4cd.dat
-rw-r--r-- 1 root root     5398 Apr 27 22:56 fixup4.dat
-rw-r--r-- 1 root root     8417 Apr 27 22:56 fixup4db.dat
-rw-r--r-- 1 root root     8413 Apr 27 22:56 fixup4x.dat
-rw-r--r-- 1 root root     3151 Apr 27 22:56 fixup_cd.dat
-rw-r--r-- 1 root root     7272 Apr 27 22:56 fixup.dat
-rw-r--r-- 1 root root    10261 Apr 27 22:56 fixup_db.dat
-rw-r--r-- 1 root root    10263 Apr 27 22:56 fixup_x.dat
-rw-r--r-- 1 root root  5466824 Apr 27 22:56 kernel7.img
-rw-r--r-- 1 root root  5801056 Apr 27 22:56 kernel7l.img
-rw-r--r-- 1 root root 13945344 Apr 27 22:56 kernel8.img
-rw-r--r-- 1 root root  5158072 Apr 27 22:56 kernel.img
-rw-r--r-- 1 root root     1594 Dec  3 12:41 LICENCE.broadcom
drwxr-xr-x 2 root root    12288 Apr 27 22:56 overlays
-rw-r--r-- 1 root root   799836 Apr 27 22:56 start4cd.elf
-rw-r--r-- 1 root root  3743076 Apr 27 22:56 start4db.elf
-rw-r--r-- 1 root root  2252288 Apr 27 22:56 start4.elf
-rw-r--r-- 1 root root  3011076 Apr 27 22:56 start4x.elf
-rw-r--r-- 1 root root   799836 Apr 27 22:56 start_cd.elf
-rw-r--r-- 1 root root  4814916 Apr 27 22:56 start_db.elf
-rw-r--r-- 1 root root  2976416 Apr 27 22:56 start.elf
-rw-r--r-- 1 root root  3734692 Apr 27 22:56 start_x.elf
Thats hot off the press from a git pull at 11:00 PM BST.

You must have
Code:
-rw-r--r-- 1 root root    25310 Feb 15 12:47 bcm2709-rpi-2-b.dtb
-rw-r--r-- 1 root root    25459 Apr 27 22:56 bcm2710-rpi-2-b.dtb
-rw-r--r-- 1 root root    52360 Apr 27 22:56 bootcode.bin
-rw-r--r-- 1 root root     3151 Apr 27 22:56 fixup_cd.dat
-rw-r--r-- 1 root root     7272 Apr 27 22:56 fixup.dat
-rw-r--r-- 1 root root    10261 Apr 27 22:56 fixup_db.dat
-rw-r--r-- 1 root root    10263 Apr 27 22:56 fixup_x.dat
-rw-r--r-- 1 root root  5466824 Apr 27 22:56 kernel7.img
-rw-r--r-- 1 root root   799836 Apr 27 22:56 start_cd.elf
-rw-r--r-- 1 root root  4814916 Apr 27 22:56 start_db.elf
-rw-r--r-- 1 root root  2976416 Apr 27 22:56 start.elf
-rw-r--r-- 1 root root  3734692 Apr 27 22:56 start_x.elf


bootcode.bin gets everything started. The ARM CPU is held in reset while the GPU loads and executes bootcode.bin
bootcode.bin uses one of the fixup and start files and eventually loads kernel7.img, one of the .dtb files and cmdline.txt into RAM.
It then releases the ARM CPU from reset.
Before it gets to releasing the ARM CPU from reset, it draws the rainbow.

While you are looking at the Pi SD card, mount its root filesystem and check that it contains /lib/modules, which in turn needs to contain
4.19.118+ 4.19.118-v7+ 4.19.118-v7l+ 4.19.118-v8+
That's the matching modules for the four kernels in /boot.
The 118+ is the latest up to the minute version. If they are missing, so is your console driver, so you would get rainbow followed by a blank screen.


NeddySeagoon,

Right. Nothing at all. Not even a rainbow.

donjames
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Mon Apr 27, 2020 11:21 pm    Post subject: Reply with quote

donjames,

Check the content of your /boot and /lib/modules on the Pi.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Tue Apr 28, 2020 2:27 am    Post subject: Installing Gentoo of raspberry pi. Reply with quote

NeddySeagoon,

Content of /lib/modules:
Code:
drwxr-xr-x  6 root root 4096 Apr 27 20:58 .
drwxr-xr-x 11 root root 4096 Apr 27 20:58 ..
drwxr-xr-x  3 root root 4096 Apr 27 20:58 4.19.118+
drwxr-xr-x  3 root root 4096 Apr 27 20:58 4.19.118-v7+
drwxr-xr-x  3 root root 4096 Apr 27 20:58 4.19.118-v7l+
drwxr-xr-x  3 root root 4096 Apr 27 20:58 4.19.118-v8+

########### end ##########
content of /boot:
Code:
drwxr-xr-x  3 root root    65536 Apr 27 20:57 .
drwxr-xr-x 20 root root     4096 Sep  6  2018 ..
-rwxr-xr-x  1 root root        0 Sep  6  2018 .keep
-rwxr-xr-x  1 root root    18693 Apr 27 20:57 COPYING.linux
-rwxr-xr-x  1 root root     1594 Apr 27 20:57 LICENCE.broadcom
-rwxr-xr-x  1 root root    24246 Apr 27 20:57 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x  1 root root    23983 Apr 27 20:57 bcm2708-rpi-b.dtb
-rwxr-xr-x  1 root root    23764 Apr 27 20:57 bcm2708-rpi-cm.dtb
-rwxr-xr-x  1 root root    24424 Apr 27 20:57 bcm2708-rpi-zero-w.dtb
-rwxr-xr-x  1 root root    23688 Apr 27 20:57 bcm2708-rpi-zero.dtb
-rwxr-xr-x  1 root root    25310 Apr 27 20:57 bcm2709-rpi-2-b.dtb
-rwxr-xr-x  1 root root    25459 Apr 27 20:57 bcm2710-rpi-2-b.dtb
-rwxr-xr-x  1 root root    27119 Apr 27 20:57 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x  1 root root    26500 Apr 27 20:57 bcm2710-rpi-3-b.dtb
-rwxr-xr-x  1 root root    25314 Apr 27 20:57 bcm2710-rpi-cm3.dtb
-rwxr-xr-x  1 root root    41108 Apr 27 20:57 bcm2711-rpi-4-b.dtb
-rwxr-xr-x  1 root root    52360 Apr 27 20:57 bootcode.bin
-rwxr-xr-x  1 root root     7272 Apr 27 20:57 fixup.dat
-rwxr-xr-x  1 root root     5398 Apr 27 20:57 fixup4.dat
-rwxr-xr-x  1 root root     3151 Apr 27 20:57 fixup4cd.dat
-rwxr-xr-x  1 root root     8417 Apr 27 20:57 fixup4db.dat
-rwxr-xr-x  1 root root     8413 Apr 27 20:57 fixup4x.dat
-rwxr-xr-x  1 root root     3151 Apr 27 20:57 fixup_cd.dat
-rwxr-xr-x  1 root root    10261 Apr 27 20:57 fixup_db.dat
-rwxr-xr-x  1 root root    10263 Apr 27 20:57 fixup_x.dat
-rwxr-xr-x  1 root root  5158072 Apr 27 20:57 kernel.img
-rwxr-xr-x  1 root root  5466824 Apr 27 20:57 kernel7.img
-rwxr-xr-x  1 root root  5801056 Apr 27 20:57 kernel7l.img
-rwxr-xr-x  1 root root 13945344 Apr 27 20:57 kernel8.img
drwxr-xr-x  2 root root    65536 Apr 27 20:57 overlays
-rwxr-xr-x  1 root root  2976416 Apr 27 20:57 start.elf
-rwxr-xr-x  1 root root  2252288 Apr 27 20:57 start4.elf
-rwxr-xr-x  1 root root   799836 Apr 27 20:57 start4cd.elf
-rwxr-xr-x  1 root root  3743076 Apr 27 20:57 start4db.elf
-rwxr-xr-x  1 root root  3011076 Apr 27 20:57 start4x.elf
-rwxr-xr-x  1 root root   799836 Apr 27 20:57 start_cd.elf
-rwxr-xr-x  1 root root  4814916 Apr 27 20:57 start_db.elf
-rwxr-xr-x  1 root root  3734692 Apr 27 20:57 start_x.elf

####### end ########

Do you need to see the contents of the directories?

What next?

donjames

Check the content of your /boot and /lib/modules on the Pi.[/quote]

Code tags added by NeddySeagoon
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Tue Apr 28, 2020 7:59 am    Post subject: Reply with quote

donjames,

Your /boot is missing cmdline.txt. Without that, the kernel cannot mount the root filesystem.
That means that it can't read /lib/modules/ to find the console driver.

However, you have enough in /boot to get the Rainbow and that's missing too.
That means its unlikely that the kernel ever loaded.

Not having a config.txt is usually OK as the Pi Firmware detects the Pi its running on and hoes the right thing.

The content of /boot/overlays is not used to boot and the content of /lib/modules is not used until the rainbow appears and then vanishes.

When you boot the Pi does the Green light flicker?
Is the Red Light always steady?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Tue Apr 28, 2020 7:33 pm    Post subject: Reply with quote

NeddySeagoon,

Here is the correct list of the contents of the /boot directory:
Code:
total 53316
drwxr-xr-x  3 root root    65536 Apr 28 14:08 .
drwxr-xr-x 20 root root     4096 Apr 27 23:03 ..
-rwxr-xr-x  1 root root        0 Sep  6  2018 .keep
-rwxr-xr-x  1 root root    18693 Apr 27 20:57 COPYING.linux
-rwxr-xr-x  1 root root     1594 Apr 27 20:57 LICENCE.broadcom
-rwxr-xr-x  1 root root    24246 Apr 27 20:57 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x  1 root root    23983 Apr 27 20:57 bcm2708-rpi-b.dtb
-rwxr-xr-x  1 root root    23764 Apr 27 20:57 bcm2708-rpi-cm.dtb
-rwxr-xr-x  1 root root    24424 Apr 27 20:57 bcm2708-rpi-zero-w.dtb
-rwxr-xr-x  1 root root    23688 Apr 27 20:57 bcm2708-rpi-zero.dtb
-rwxr-xr-x  1 root root    25310 Apr 27 20:57 bcm2709-rpi-2-b.dtb
-rwxr-xr-x  1 root root    25459 Apr 27 20:57 bcm2710-rpi-2-b.dtb
-rwxr-xr-x  1 root root    27119 Apr 27 20:57 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x  1 root root    26500 Apr 27 20:57 bcm2710-rpi-3-b.dtb
-rwxr-xr-x  1 root root    25314 Apr 27 20:57 bcm2710-rpi-cm3.dtb
-rwxr-xr-x  1 root root    41108 Apr 27 20:57 bcm2711-rpi-4-b.dtb
-rwxr-xr-x  1 root root     2420 Apr 28 14:08 boot042820201408.txt
-rwxr-xr-x  1 root root    52360 Apr 27 20:57 bootcode.bin
-rwxr-xr-x  1 root root      142 Apr 27 22:44 cmdline.txt
-rwxr-xr-x  1 root root     7272 Apr 27 20:57 fixup.dat
-rwxr-xr-x  1 root root     5398 Apr 27 20:57 fixup4.dat
-rwxr-xr-x  1 root root     3151 Apr 27 20:57 fixup4cd.dat
-rwxr-xr-x  1 root root     8417 Apr 27 20:57 fixup4db.dat
-rwxr-xr-x  1 root root     8413 Apr 27 20:57 fixup4x.dat
-rwxr-xr-x  1 root root     3151 Apr 27 20:57 fixup_cd.dat
-rwxr-xr-x  1 root root    10261 Apr 27 20:57 fixup_db.dat
-rwxr-xr-x  1 root root    10263 Apr 27 20:57 fixup_x.dat
-rwxr-xr-x  1 root root  5158072 Apr 27 20:57 kernel.img
-rwxr-xr-x  1 root root  5466824 Apr 27 20:57 kernel7.img
-rwxr-xr-x  1 root root  5801056 Apr 27 20:57 kernel7l.img
-rwxr-xr-x  1 root root 13945344 Apr 27 20:57 kernel8.img
drwxr-xr-x  2 root root    65536 Apr 27 20:57 overlays
-rwxr-xr-x  1 root root  2976416 Apr 27 20:57 start.elf
-rwxr-xr-x  1 root root  2252288 Apr 27 20:57 start4.elf
-rwxr-xr-x  1 root root   799836 Apr 27 20:57 start4cd.elf
-rwxr-xr-x  1 root root  3743076 Apr 27 20:57 start4db.elf
-rwxr-xr-x  1 root root  3011076 Apr 27 20:57 start4x.elf
-rwxr-xr-x  1 root root   799836 Apr 27 20:57 start_cd.elf
-rwxr-xr-x  1 root root  4814916 Apr 27 20:57 start_db.elf
-rwxr-xr-x  1 root root  3734692 Apr 27 20:57 start_x.elf

###### end of list########

The red light on the Pi is steady. The green light blinks for a few seconds and then goes out.

Regards,

donjames

code tags added by NeddySeagoon
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Tue Apr 28, 2020 7:51 pm    Post subject: Reply with quote

donjames,

That looks good.
The Green flickering light is the SD card being read.

The Pi has two video outputs Composite, that can be either PAL or NTSC,and HDMI.
Composite is obsolete and disabled by default.

I suppose you are using the HDMI video output?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Tue Apr 28, 2020 8:47 pm    Post subject: Installing Gentoo of raspberry pi. Reply with quote

NeddySeagoon,

Yes, I am using HDMI.

Does the boot flag have to be set on the boot sector?

Please let me know something else to try.

Thanks,

donjames
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Tue Apr 28, 2020 9:01 pm    Post subject: Reply with quote

donjames,

Put the SD card into your PC.
Run
Code:
fsck -f /dev/...
on the boot and root partitions.
Do not let fsck fix any problems. Recreate the SD card if the filesystems are not clean.

Do you have another SD card you can use to test with?
SD cards do fail.

Please explain how you wrote the SD card for your Pi?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Wed Apr 29, 2020 12:08 am    Post subject: Reply with quote

NeddySeagoon,

I ran fsck -f /dev/sdb1 with no errors.
I ran fsck -f /dev/sdb3 with no errors.

I attempted to install gentoo on the raspberry pi using the instruction here:
https://wiki.gentoo.org/wiki/Raspberry_Pi/Quick_Install_Guide#Preparing_the_SD_card. This is how I wrote data to the card.

I have installed raspbian on the card and it boots ok. Looks like the card is ok.

Regards,

Don James
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Wed Apr 29, 2020 6:13 pm    Post subject: Reply with quote

donjames,

I will make you a Pi2 boot filesystem with a special kernel that has an early console driver.
It will not be a complete kernel but I suppose I can tar up the modules too.
If I can find a Pi 2, I'll test it before I post.

To get it right I need the Model line from the end of /proc/cpuinfo.
I'm only planning to build one kernel, not the four on your SD card now.

I'll need to dust of my armv7 cross tool chain, so it will likely not happen before Saturday, UK time.
The kernel will be the Foundation default kernel, with two changes

a) Add in Simple Framebuffer
b) Change the default CPU governor from powersave, to on demand. That makes it go faster when its busy.

Simple Framebuffer will get a console without mouting root so we may get some debug info.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Wed Apr 29, 2020 7:45 pm    Post subject: Installing Gentoo of raspberry pi. Reply with quote

NeddySeagoon,

That would be great!
cpuinfo: Raspberry Pi 2 Model B Rev 1.1

If you would, all I need is a console in text mode -- no framebuffer. I don't need a GUI. I am making this Pi into a router.

Thank you!


Don James
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54315
Location: 56N 3W

PostPosted: Wed Apr 29, 2020 8:59 pm    Post subject: Reply with quote

donjames,

There is only framebuffer on a Pi. The old 80x24 character screen of days gone by is not an option.

I've found an unofficial up to date armv7a stage3 from a reliable source, so I will probably make two tarballs.
One for /boot and one for root.

Code:
Raspberry Pi 2 Model B Rev 1.1
That's the 32 bit Pi 2.
I have one of these Pis in a corner of a cupboard somewhere. I'll dig it out for testing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
donjames
Apprentice
Apprentice


Joined: 19 Dec 2004
Posts: 251
Location: 32°9'50" N 94°50'54" W

PostPosted: Thu Apr 30, 2020 2:14 pm    Post subject: Installing Gentoo on raspberry pi. Reply with quote

NeddySeagoon,

Is there a way to make the text larger on the framebuffer? How about the equivalent of 18-point type?


Regards,

donjames
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum