-
Notifications
You must be signed in to change notification settings - Fork 2
Description
First of all, many thanks for putting this together so far! I tried to build a live Linux image using ./build-all.sh from scratch and had to make a few minor changes:
There’s a problem with the upstream hash for buildroot/package/iperf/iperf.hash, as explained here.
The error cp: cannot create regular file '../usb-stick/boot-overlay/BOOT/buildrootconfig.txt': No such file or directory seems to be solved after a manual mkdir usb-stick/boot-overlay/BOOT. Similarly, cp: cannot create regular file '../linux/firmware/ps2/ps2dev9.irx': No such file or directory Makefile:29: recipe for target '../linux/firmware/ps2/ps2dev9.irx' failed seems to need a manual mkdir linux/firmware/ps2.
kernelloader/png2rgb/png2rgb.c needs some simple updates (could be improved) to compile with a newer PNG library:
cc -g -Wall -Werror-implicit-function-declaration -c -o png2rgb.o png2rgb.c
png2rgb.c: In function ‘loadPng’:
png2rgb.c:48:37: error: ‘png_infopp_NULL’ undeclared (first use in this function)
png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
^~~~~~~~~~~~~~~
png2rgb.c:48:37: note: each undeclared identifier is reported only once for each function it appears in
png2rgb.c:72:52: error: ‘png_voidp_NULL’ undeclared (first use in this function)
PNG_TRANSFORM_SWAP_ENDIAN /* png_transforms */ , png_voidp_NULL);
^~~~~~~~~~~~~~
png2rgb.c:75:59: error: dereferencing pointer to incomplete type ‘png_info {aka struct png_info_def}’
printf("Width: %d Height: %d Depth: %d\n", (int) info_ptr->width,
^~
png2rgb.c:103:2: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration]
memset(dest, 0, info_ptr->width * info_ptr->height * *depth);
^~~~~~
png2rgb.c:103:2: warning: incompatible implicit declaration of built-in function ‘memset’
png2rgb.c:103:2: note: include ‘<string.h>’ or provide a declaration of ‘memset’
cc1: some warnings being treated as errors
Makefile:14: recipe for target 'png2rgb.o' failed
make[1]: *** [png2rgb.o] Error 1
Then I had the error
Your branch is up-to-date with 'origin/ps2-v2.6.35.14'.
/bin/sh: mips64r5900el-linux-gnu-gcc: command not found
/bin/sh: mips64r5900el-linux-gnu-gcc: command not found
make: mips64r5900el-linux-gnu-gcc: Command not found
and so I tried to use the compiler in buildroot/output/host/usr/bin instead, via a few symlinks and setting TOOLCHAIN=mipsel in config/config.cfg (I’m not sure this actually works in practice). Next,
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
/home/noring/Dokument/linux-dev/linux/kernel/Makefile:138: recipe for target 'kernel/timeconst.h' failed
make[1]: *** [kernel/timeconst.h] Error 255
Makefile:888: recipe for target 'kernel' failed
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....
seems to be a problem fixed here. Then the error
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
Inconsistent kallsyms data
Try setting CONFIG_KALLSYMS_EXTRA_PASS
Makefile:863: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
came up, but it disappeared after running ./build-all.sh again, which completed the build.
I’d like to avoid the final step of formatting the entire USB stick, and instead create a boot file in the existing USB file system. I’ll look into the ./create script and see if I can figure out how to change that.