Trouble bringing up Raspberry Pi
Hi All,
I'm having some trouble bringing up a Raspberry Pi B+ and was hoping someone could point me in the right direction. I have successfully used buildroot on x86 machines in the past and managed to get them to run.
I'm using a Raspberry Pi B+,with a USB keyboard, ethernet and HDMI output. The system works properly using a Raspbian image.
I'm just trying to bring up a minimal system and then go from there.
I'm using buildroot-2015.11.1 and followed the readme.txt under board/raspberrypi. I've tried both the volatile and persistent rootfs and find the instruction insufficient to get a working system.
After the first failed attempt, I set BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
which allowed me to boot the machine and I'm now able to log in via SSH/dropbear, but I don't always get a login prompt, and the keyboard has no effect even though it's found by the system and I
get a message when I unplug it or plug it back in again.
I've tried adding items to cmdline.txt from various websites, but still don't have any keyboard input.
Are there other missing notes like the one about enabling MDEV which will allow me to log in to the console?
Perhaps a working .config for the Pi B+ would set me in the right direction.
Thanks,
Steve Morris
Steve,
Quoted 2 lines · Steve Morris
Perhaps a working .config for the Pi B+ would set me in the right direction.
Did you try:
make raspberrypi_defconfig
make
And then read the instructions in board/raspberrypi/readme.txt ?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Hello Thomas,
Thank you for the response.
Yes, I followed those instructions at least a couple of times for both volatile and persistent root.
It hung during boot until I added the mdev selection.
I was able to get keyboard input working by loading the hid-microsoft module ( microsoft USB keyboard ), but I was assuming a minimal system could read a generic USB keyboard.
I'll try it again from scratch and see if I have better results.
Steve
Quoted 21 lines · Thomas Petazzoni
Steve,
Quoted 2 lines · Steve Morris
Perhaps a working .config for the Pi B+ would set me in the right direction.
Did you try:
make
raspberrypi_defconfig
makeAnd then read the instructions in
board/raspberrypi/readme.txt?Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Hello,
Quoted 6 lines · Steve Morris
Thank you for the response.
Yes, I followed those instructions at least a couple of times for both volatile and persistent root.
It hung during boot until I added the mdev selection.
When does it hang? It definitely shouldn't hang. Are you using the serial port of your RPi to get the bootloader/kernel/initialization messages ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Hello Thomas,
I retried on a Pi Model B which had a serial adapter already connected.
The major problem appears to be that the USB keyboard is not working using the standard build. It is found during boot and displays messages when unplugging/pluging. Perhaps I'm expecting too much.
The network only comes up if I put 'ip=dhcp' in cmdline.txt. This may be normal behavior.
In any event, here are the steps I took to retry and the output on the console.
Thanks,
Steve
I rebuilt using a fresh install of buildroot 2015-11-1
$make raspberrypi_defconfig
$make
When it was done I copied it over to the SD card using:
(PIBOOT and PIROOT are the partitions on the card )
rm -rf ${PIBOOT}/*
sudo rm -rf ${PIROOT}/*
cd $BRDIR
cp output/images/rpi-firmware/* ${PIBOOT}
cp output/images/*.dtb ${PIBOOT} ./output/host/usr/bin/mkknlimg output/images/zImage ${PIBOOT}/zImage sudo tar xf ./output/images/rootfs.tar -C ${PIROOT}
Here's what the SD card looks like.
Disk /dev/sdc: 7.5 GiB, 8043626496 bytes, 15710208 sectors
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: 0x00000000
Device Boot Start End Sectors Size Id Type/dev/sdc1 * 2048 104447 102400 50M c W95 FAT32 (LBA)/dev/sdc2 104448 15710207 15605760 7.5G 83 Linux
Here's cmdline.txt
root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200 rootfstype=ext4
And here's the boot output from serial console: