Page 1 of 1

Buildroot - nothing on screen

Posted: Wed Jun 18, 2014 12:39 pm
by Helvinion
Hello,

I am trying to build a custom distribution for my raspberry pi model B.

I tried a few things, but none of them worked.
I tried a cross compiled linux from scratch, but g++ wont compile because uClibC does not contain tmpnam.

I tryed to build the distro on the raspberry, but i estimated a build time of 60 hours.

I tried, then, buildroot and I managed to build something.
The first time I used the configuration file given by buildroot to build it. It worked.
The second time, I configured it manually following a tutotial about buildtoot on the raspberry. It woked

However, on both the cases above, I have a problem when booting the Raspberry. I can see the color shading, but nothing else.
I believe that the firmware worked and the kernel has been lauched, but is writing stuff on its uart. I dont have a uart cable. So I can't check

How could I ask buildroot to make the kernel write its stuff on the screen ?

Thanks you.

Re: Buildroot - nothing on screen

Posted: Wed Jun 18, 2014 1:34 pm
by topguy
How does your "/boot/cmdline.txt" look ?

This is my file on standard raspbian. If you are right and that your image actually boots then maybe there is some kernel option that is not present.

Code: Select all

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait

Re: Buildroot - nothing on screen

Posted: Wed Jun 18, 2014 4:51 pm
by Helvinion
Hello,

My cmdline.txt is :
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline rootwait root=/dev/mmcblk0p2 rootfstype=ext4
Apparently, it is the same as yours, apart the root argument...

A fdisk on my SD card gives (sorry, it is in french) :
Disque /dev/sdd : 7948 Mo, 7948206080 octets, 15523840 secteurs
Unités = secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x000981cb

Périphérique Amorçage Début Fin Blocs Id. Système
/dev/sdd1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/sdd2 122880 15523839 7700480 83 Linux
I followed this tutorial :
http://cellux.github.io/articles/diy-li ... ot-part-1/
I just changed the kernel version, an chose the 3.12 (the last version of the rpi repo)

Is their any information I can give ?


EDIT : Well, I solved my error. The name of the kernel I put on the card was kernel.img, but I printed the config.txt file, and I saw that the name should be, this time, zImage. Actually, the kernel were not launched. I changed the name of the kernel on the card, and it is now working.
Thank you, and sorry for your time :)

Re: Buildroot - nothing on screen

Posted: Tue Jun 24, 2014 4:09 pm
by AndrewS
Helvinion wrote:I dont have a uart cable. So I can't check
If you're trying to build your own distro, you'll find a UART cable extremely useful for debugging 8-)