Eric Thomas
TVWBB Member
I'm attempting to build the openwrt and linkmeter files from source for the first time.
But, the build is failing when creating boot.img:
I'm not sure what each of the elf files do, but arm128_start.elf is added twice and all three of the armXXX_start.elf files are being added to boot.img.
I see that CONFIG_BRCM2708_SD_BOOT_PARTSIZE=9 which sets the size of the boot.img file. The total size of the files that are being added to boot.img is closer to 12M.
Any ideas where I'm going wrong?
Thanks,
eric
Code:
mkdir ~/heatermeter
cd ~/heatermeter
git clone https://github.com/CapnBry/HeaterMeter.git
svn co svn://svn.openwrt.org/openwrt/branches/attitude_adjustment openwrt
cd HeaterMeter/openwrt
source ./install.sh BCM2708 ~/heatermeter/openwrt
cd ~/heatermeter/openwrt
make menuconfig
make
But, the build is failing when creating boot.img:
Code:
,dir_index /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/root.ext4
tune2fs 1.42.4 (12-June-2012)
/home/eric/heatermeter/openwrt/staging_dir/host/bin/e2fsck -fy /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/root.ext4
e2fsck 1.42.4 (12-June-2012)
Filesystem did not have a UUID; generating one.
Adding dirhash hint to filesystem.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? yes
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/root.ext4: ***** FILE SYSTEM WAS MODIFIED *****
/home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/root.ext4: 904/6000 files (0.1% non-contiguous), 12440/20480 blocks
cp -fpR /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/root.ext4 /home/eric/heatermeter/openwrt/bin/brcm2708/openwrt-brcm2708-ext4.img
cp -fpR /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/Image /home/eric/heatermeter/openwrt/bin/brcm2708/openwrt-brcm2708-Image
rm -f /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img
mkdosfs /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img -C 9216
mkdosfs 3.0.7 (24 Dec 2009)
# Raspberry Pi has no bootloader, instead the GPU loads and starts the kernel
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/arm128_start.elf ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/arm192_start.elf ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/arm224_start.elf ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/bootcode.bin ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/COPYING.linux ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/LICENCE.broadcom ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/loader.bin ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/brcm2708-gpu-fw-boot/arm128_start.elf ::start.elf #Copy file for memory/gpu division
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img cmdline.txt ::
mcopy -i /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/boot.img /home/eric/heatermeter/openwrt/build_dir/linux-brcm2708/Image ::kernel.img # Copy OpenWrt built kernel
Disk full
make[5]: *** [install] Error 1
make[5]: Leaving directory `/home/eric/heatermeter/openwrt/target/linux/brcm2708/image'
I'm not sure what each of the elf files do, but arm128_start.elf is added twice and all three of the armXXX_start.elf files are being added to boot.img.
I see that CONFIG_BRCM2708_SD_BOOT_PARTSIZE=9 which sets the size of the boot.img file. The total size of the files that are being added to boot.img is closer to 12M.
Any ideas where I'm going wrong?
Thanks,
eric
Last edited: