lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Cross compiling from OSX section in elinux.org maybe wrong

Wed Feb 26, 2014 1:37 am

It says Complete script requires raspberrypi.config to be in the same folder that you execute from
http://elinux.org/RPi_Kernel_Compilatio ... nel_source


#Make a case sensitive 3gb disk image, raspberrypi-kernel, and attach it

hdiutil create -size 10g -type SPARSEBUNDLE -nospotlight -volname raspberrypi-kernel -fs "Case-sensitive Journaled HFS+" -attach ./raspberrypi-kernel.dmg
cp raspberrypi.config /Volumes/raspberrypi-kernel/
mkdir /Volumes/raspberrypi-kernel/src
cd /Volumes/raspberrypi-kernel/src
======================================================================

That Scriot won't work because it's creating volume on the Raspberry Pi. It says secpificailly this is for crossing-compiling on a mac for Raspberry Pi. That script won't run on a Mac for sure.

tvjon
Posts: 778
Joined: Mon Jan 07, 2013 9:11 am

Re: Cross compiling from OSX section in elinux.org maybe wro

Wed Feb 26, 2014 9:11 am

Have you simply read these statements & believe them to be wrong, or actually tried them?

"That Scriot won't work because it's creating volume on the Raspberry Pi. It says secpificailly this is for crossing-compiling on a mac for Raspberry Pi. That script won't run on a Mac for sure."

Actually, it does run fine on a mac.

I've just run that first line "hdiutil ...." on a macbook

& it has created a sparse image of < 1K & then mounted it in Finder. It's visible in the sidebar too. I can now write files just fine to that image. It's a useful feature & I've used that idea (for OS X, not Linux stuff) several times over the years.

As I'm interested in RPi, I prefer to build natively on RPi where possible, but if I can find some time, I'll install Yagarto again (mine was an older version). Obviously build times will be faster on a mac.

Return to “Troubleshooting”