Build instructions

435 views
Skip to first unread message

nathan

unread,
Aug 22, 2012, 5:35:24 AM8/22/12
to raspberrypi...@googlegroups.com
Hi all,

All changes of the "kernel_rework_patches" branch are merged into the "master" branch, so everything should build now out-of-the-box now.

Here are the build instructions for generating the SDcard image yourself right from the git repository:

1. clone git repository:
git clone https://code.google.com/p/raspberrypi-openwrt

2. Optional:
make a download directory here:
mkdir downloads

This directory will be used for storing all the downloaded files, so you won't have to download it again in case of a rebuild.

3. setup:
cd raspberrypi-openwrt
cp configs/config-rpi .config

4. Optional:
Make symbolic link to the download directory:
ln -s ../downloads downloads

Adjust configuration:
vi .config

Change the line :
CONFIG_DOWNLOAD_FOLDER="/home/<username>/<path>/downloads"

Make sure this path is an absolute path to your downloads directory.

5. make steps:
make prereq
make menuconfig

Note:
Just save the resulting configuration. No changes needed.

Build it!
make world V=99

6. make sdcard
cd bin/raspberrypi/
sudo dd bs=1M if=openwrt-raspberrypi-sdcard.img of=/dev/mmcblk0
sync

7. Play!

Note:
If you are not that experienced with git, I advice you to do a clean clone of the repository by following these instructions.
It is possible to re-use an already cloned version of the git repository, but you might run into some issues.

Update instructions for an existing cloned repository:
1. chdir
cd raspberrypi-openwrt

2. git checkout
git checkout master

3. git pull
git pull origin master

This will pull in all changes on the "origin/master" branch (from repository) and merge it into the local "master" branch.

Verify that you are on the right branch:
git branch -v

The output should be something like this:
* master 18c4939 This version has the correct FAT filesystem and kernel configuration to boot correctly!

From here follow the steps starting at step 2.

Grtz,
Nathan.

Pau

unread,
Sep 6, 2012, 10:44:25 AM9/6/12
to raspberrypi...@googlegroups.com
It works for me!! Thank you Nathan.

--
./p4u





--
You received this message because you are subscribed to the Google Groups "Raspberry Pi Openwrt Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/raspberrypi-openwrt-dev/-/6Z5Gr9VDxQ8J.
To post to this group, send email to raspberrypi...@googlegroups.com.
To unsubscribe from this group, send email to raspberrypi-openw...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/raspberrypi-openwrt-dev?hl=en.

Pau

unread,
Sep 6, 2012, 1:15:37 PM9/6/12
to raspberrypi...@googlegroups.com
However I still can see some SD related errors:

mmc0: final write to SD card still running
mmc0: Timeout waiting for hardware interrupt - cmd12

But yeah, OpenWRT boots anyway.
Googling a little it seems to be a driver problem which maybe can be solved with last github drivers.

Cheers
--
./p4u

David Warren

unread,
Sep 8, 2012, 4:34:03 AM9/8/12
to raspberrypi...@googlegroups.com
#5 gives me " pi@raspberrypi ~/raspberrypi-openwrt $ make steps:
/home/pi/raspberrypi-openwrt/include/verbose.mk:52: *** target pattern contains no `%'.  Stop. "

No errors until that point for me. 

Nathan Huizinga

unread,
Sep 8, 2012, 1:19:10 PM9/8/12
to raspberrypi...@googlegroups.com
You're welcome :-)

BTW: I didn't notice any mmc timeouts... They might be solved by going
to Linux 3.3.8 (OpenWrt mainline) and the latest drivers.

Grtz,
Nathan.

On 06-09-12 16:44, Pau wrote:
> It works for me!! Thank you Nathan.
>
> --
> ./p4u
>
>
>
> On Wed, Aug 22, 2012 at 11:35 AM, nathan <nathan....@gmail.com
> <mailto:nathan....@gmail.com>> wrote:
>
> Hi all,
>
> All changes of the "kernel_rework_patches" branch are merged into
> the "master" branch, so everything should build now /out-of-the-box/
> now.
>
> Here are the build instructions for generating the SDcard image
> yourself right from the git repository:
>
> 1. clone git repository:
>
> git clone https://code.google.com/p/raspberrypi-openwrt
>
>
> 2. /Optional:/
> make a download directory here:
>
> mkdir downloads
>
>
> This directory will be used for storing all the downloaded files, so
> you won't have to download it again in case of a rebuild.
>
> 3. setup:
>
> cd raspberrypi-openwrt
>
> cp configs/config-rpi .config
>
>
> 4. /Optional:/
> Make symbolic link to the download directory:
>
> ln -s ../downloads downloads
>
>
> Adjust configuration:
>
> vi .config
>
>
> Change the line :
>
> CONFIG_DOWNLOAD_FOLDER="/home/<username>/<path>/downloads"
>
>
> Make sure this path is an absolute path to *your* /downloads/ directory.
>
> 5. make steps:
>
> make prereq
> make menuconfig
>
>
> _Note:_
> Just save the resulting configuration. No changes needed.
>
> Build it!
>
> make world V=99
>
>
> 6. make sdcard
>
> cd bin/raspberrypi/
>
> sudo dd bs=1M if=openwrt-raspberrypi-sdcard.img of=/dev/mmcblk0
>
> sync
>
>
> 7. Play!
>
> /Note:/
> <mailto:raspberrypi...@googlegroups.com>.
> To unsubscribe from this group, send email to
> raspberrypi-openw...@googlegroups.com
> <mailto:raspberrypi-openwrt-dev%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/raspberrypi-openwrt-dev?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Raspberry Pi Openwrt Development" group.

Nathan Huizinga

unread,
Sep 8, 2012, 1:22:15 PM9/8/12
to raspberrypi...@googlegroups.com
Hi David,

The "make steps:" is not intended to be executed ;-)

Just execute the following in step 5:

make prereq
make menuconfig

Hope this helps...

Grtz,
Nathan.

On 08-09-12 10:34, David Warren wrote:
> #5 gives me " pi@raspberrypi ~/raspberrypi-openwrt $ make steps:
> /home/pi/raspberrypi-openwrt/include/verbose.mk:52: *** target pattern
> contains no `%'. Stop. "
>
> No errors until that point for me.
>
>
> On Wednesday, August 22, 2012 4:35:24 AM UTC-5, nathan wrote:
>
> Hi all,
>
> All changes of the "kernel_rework_patches" branch are merged into
> the "master" branch, so everything should build now /out-of-the-box/
> now.
>
> Here are the build instructions for generating the SDcard image
> yourself right from the git repository:
>
> 1. clone git repository:
>
> git clone https://code.google.com/p/raspberrypi-openwrt
> make a download directory here:
>
> mkdir downloads
>
>
> This directory will be used for storing all the downloaded files, so
> you won't have to download it again in case of a rebuild.
>
> 3. setup:
>
> cd raspberrypi-openwrt
>
> cp configs/config-rpi .config
>
>
> 4. /Optional:/
> Make symbolic link to the download directory:
>
> ln -s ../downloads downloads
>
>
> Adjust configuration:
>
> vi .config
>
>
> Change the line :
>
> CONFIG_DOWNLOAD_FOLDER="/home/<username>/<path>/downloads"
>
>
> Make sure this path is an absolute path to *your* /downloads/ directory.
>
> 5. make steps:
>
> make prereq
> make menuconfig
>
>
> _Note:_
> Just save the resulting configuration. No changes needed.
>
> Build it!
>
> make world V=99
>
>
> 6. make sdcard
>
> cd bin/raspberrypi/
>
> sudo dd bs=1M if=openwrt-raspberrypi-sdcard.img of=/dev/mmcblk0
>
> sync
>
>
> 7. Play!
>
> /Note:/
> If you are not that experienced with git, I advice you to do a clean
> clone of the repository by following these instructions.
> It is possible to re-use an already cloned version of the git
> repository, but you might run into some issues.
>
> Update instructions for an existing cloned repository:
> 1. chdir
>
> cd raspberrypi-openwrt
>
>
> 2. git checkout
>
> git checkout master
>
>
> 3. git pull
>
> git pull origin master
>
>
> This will pull in all changes on the "origin/master" branch (from
> repository) and merge it into the local "master" branch.
>
> Verify that you are on the right branch:
>
> git branch -v
>
>
> The output should be something like this:
>
> * master 18c4939 This version has the correct FAT filesystem and
> kernel configuration to boot correctly!
>
>
> From here follow the steps starting at step 2.
>
> Grtz,
> Nathan.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Raspberry Pi Openwrt Development" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/raspberrypi-openwrt-dev/-/t73--wcshR4J.
Reply all
Reply to author
Forward
0 new messages