freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
611 stars 187 forks source link

add start_x.elf to Raspberry PI boot #136

Closed serge-v closed 7 years ago

serge-v commented 8 years ago

Need to add 2 new RPI firmware files start_x.elf and fixup_x.dat. They are required when start_x=1 config.txt option is specified.

brd commented 8 years ago

Can you explain a bit more about why they are required?

serge-v commented 8 years ago

Camera didn't work with start_x=0 in config.txt. Raspistill is complaining that mmal is not enabled.

I tried enable the camera using these instructions: http://raspberrypi.stackexchange.com/questions/14229/how-can-i-enable-the-camera-without-using-raspi-config and http://blog.mcmelectronics.com/post/Getting-Up-and-Running-with-the-Raspberry-Pi-Camera-Board#.VkXyI66rTOQ

So I set: start_x=1 PRI doesn't boot at all. After copying start_x.elf and fixup_x.dat it boots successfully and camera is working.

kientzle commented 8 years ago

Are those files in the RPi U-Boot port? If not, we should get them added there. I believe Crochet just copies all the files from that port.

serge-v commented 8 years ago

u-boot-rpi/Makefile doesn't have any references to start_x.elf and fixup_x.dat. Is this correct place to check?

Makefile: https://svnweb.freebsd.org/ports/head/sysutils/u-boot-rpi/Makefile?revision=400051&view=markup

brd commented 8 years ago

I wrote up these instructions a few weeks ago to get my camera working:

https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi%20Camera

serge-v commented 8 years ago

Do you have start_x.elf on RPI2 boot partition?

brd commented 8 years ago

Yes.

kientzle commented 8 years ago

On Nov 13, 2015, at 6:14 AM, Serge Voilokov notifications@github.com wrote:

Need to add 2 new RPI firmware files start_x.elf and fixup_x.dat. They are required when start_x=1 config.txt option is specified.

To clarify, is this for RPI or RPI2?

It looks like the RPI2 U-Boot port does have those files but they're missing from the RPI port.

In either case, Crochet should just be copying all the files from the port, so if something is missing, it should be corrected in the port.

serge-v commented 8 years ago

I have RPI-A. Right, sysutils/u-boot-rpi2 has start_x. u-boot-rpi has not. Will add. Thanks for clarification.

kientzle commented 7 years ago

Closing this old issue, since it was really a problem with the RPI U-Boot port.