which system you use?
root@osirisBPiM3:/usr/src/BPI-M3-bsp # ./build.sh
==========================================
BPI-M3 BSP Build Tool
==========================================
This tool support following BPI board(s):
------------------------------------------
1. BPI_M3_720P
2. BPI_M3_1080P
3. BPI_M3_LCD7
4. BPI_M3_USB_720P
5. BPI_M3_USB_1080P
6. BPI_M3_USB_LCD7
------------------------------------------
Please choose a target(1-6): 2
Now configuring...
BPI_M3_1080P configured. Now run `make`
Configure success!
This tool support following building mode(s):
--------------------------------------------------------------------------------
1. Build all, uboot and kernel and pack to download images.
2. Build uboot only.
3. Build kernel only.
4. kernel configure.
5. Build rootfs for linux, and copy target files to output
ROOTFS=/xxx/rootfs.tar.gz
This is optinal, default using rootfs/linux/default_linux_rootfs.tar.gz.
6. Pack the builds to target download image, this step must execute after u-boot,
kernel and rootfs build out
7. Clean all build.
--------------------------------------------------------------------------------
Please choose a mode(1-6): 3
Now building...
make -C linux-sunxi ARCH=arm sun8iw6p1smp_bpi_defconfig
make[1]: Entering directory '/usr/src/BPI-M3-bsp/linux-sunxi'
drivers/net/wireless/bcmdhd/Kconfig:57:warning: defaults for choice values not supported
#
# configuration written to .config
#
make[1]: Leaving directory '/usr/src/BPI-M3-bsp/linux-sunxi'
make -C linux-sunxi ARCH=arm -j16 INSTALL_MOD_PATH=output uImage modules
make[1]: Entering directory '/usr/src/BPI-M3-bsp/linux-sunxi'
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:57:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
AS arch/arm/mach-sunxi/sunxi-headsmp.o
CC arch/arm/mach-sunxi/sunxi-platsmp.o
CC arch/arm/mach-sunxi/sunxi-hotplug.o
CC arch/arm/mach-sunxi/sys_config.o
CC arch/arm/mach-sunxi/sunxi_dump_reg.o
CC arch/arm/mach-sunxi/sunxi-chip.o
/usr/src/BPI-M3-bsp/linux-sunxi/arch/arm/mach-sunxi/pm/standby/Makefile:107: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
/usr/src/BPI-M3-bsp/linux-sunxi/arch/arm/mach-sunxi/pm/Makefile:90: recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed
make[3]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed
make[2]: *** [arch/arm/mach-sunxi/pm] Error 2
make[2]: *** Waiting for unfinished jobs....
CC crypto/api.o
CC block/elevator.o
.
.
.
.
.
CC drivers/base/firmware.o
CC block/blk-map.o
CC drivers/ata/libahci.o
drivers/bluetooth/hci_rtk_h5.c: In function ‘h5_complete_rx_pkt’:
drivers/bluetooth/hci_rtk_h5.c:591:24: warning: unused variable ‘hdr’ [-Wunused-variable]
struct hci_event_hdr hdr;
^
drivers/bluetooth/hci_rtk_h5.c: At top level:
drivers/bluetooth/hci_rtk_h5.c:403:13: warning: ‘h5_handle_le_pkt’ defined but not used [-Wunused-function]
static void h5_handle_le_pkt(struct hci_uart *hu)
^
LD drivers/block/built-in.o
CC drivers/ata/sata_mv.o
CC drivers/arisc/interfaces/arisc_debug_level.o
.
.
.
.
.
CC drivers/dma/virt-dma.o
CC drivers/dma/sunxi-dma.o
CC [M] drivers/char/ipmi/ipmi_kcs_sm.o
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_info_write’:
drivers/clk/sunxi/clk-debugfs.c:482:9: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_from_user(testclk_priv.info, buf, count);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_info_read’:
drivers/clk/sunxi/clk-debugfs.c:471:6: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_to_user((void __user *)buf,(const void *)testclk_priv.tmpbuf,(unsigned long)len);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_param_write’:
drivers/clk/sunxi/clk-debugfs.c:440:9: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_from_user(testclk_priv.param, buf, count);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_param_read’:
drivers/clk/sunxi/clk-debugfs.c:429:6: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_to_user((void __user *)buf,(const void *)testclk_priv.tmpbuf,(unsigned long)len);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_start_write’:
drivers/clk/sunxi/clk-debugfs.c:397:9: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_from_user(testclk_priv.start, buf, count);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_start_read’:
drivers/clk/sunxi/clk-debugfs.c:386:6: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_to_user((void __user *)buf,(const void *)testclk_priv.tmpbuf,(unsigned long)len);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_name_write’:
drivers/clk/sunxi/clk-debugfs.c:355:9: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_from_user(testclk_priv.name, buf, count);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_name_read’:
drivers/clk/sunxi/clk-debugfs.c:343:6: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_to_user((void __user *)buf,(const void *)testclk_priv.tmpbuf,(unsigned long)len);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_command_write’:
drivers/clk/sunxi/clk-debugfs.c:312:9: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_from_user(testclk_priv.command, buf, count);
^
drivers/clk/sunxi/clk-debugfs.c: In function ‘ccudbg_command_read’:
drivers/clk/sunxi/clk-debugfs.c:300:6: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result [-Wunused-result]
copy_to_user((void __user *)buf,(const void *)testclk_priv.tmpbuf,(unsigned long)len);
^
CC drivers/cpufreq/cpufreq_interactive.o
.
.
.
.
.
.
CC [M] drivers/md/raid1.o
drivers/leds/ledtrig-sunxi-respiration.c: In function ‘respiration_trig_activate’:
drivers/leds/ledtrig-sunxi-respiration.c:128:2: warning: ignoring return value of ‘sysfs_create_group’, declared with attribute warn_unused_result [-Wunused-result]
sysfs_create_group(&led_cdev->dev->kobj,
^
CC drivers/hid/hid-saitek.o
.
.
.
CC drivers/media/dvb/dvb-core/dvb_net.o
drivers/media/dvb/dvb-usb/anysee.c: In function ‘anysee_ci_poll_slot_status’:
drivers/media/dvb/dvb-usb/anysee.c:1188:5: warning: ‘tmp’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (tmp == 0) {
^
CC drivers/media/dvb/dvb-core/dvb_ringbuffer.o
.
.
.
..
CC drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_dsi.o
CC drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_clock.o
drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_wb.c: In function ‘WB_EBIOS_Set_Para’:
drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_wb.c:314:94: warning: ‘cs_out_h0’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if((cs_out_w0 == fs_out_w0)&&(cs_out_h0 == fs_out_h0)&&(cs_out_w1 == fs_out_w1)&&(cs_out_h1 == fs_out_h1))
^
drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_wb.c:314:68: warning: ‘cs_out_w0’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if((cs_out_w0 == fs_out_w0)&&(cs_out_h0 == fs_out_h0)&&(cs_out_w1 == fs_out_w1)&&(cs_out_h1 == fs_out_h1))
^
LD drivers/usb/built-in.o
LD drivers/video/sunxi/disp2/disp/disp.o
LD drivers/video/sunxi/disp2/disp/built-in.o
LD drivers/video/sunxi/built-in.o
LD drivers/video/built-in.o
LD drivers/built-in.o
make[1]: Leaving directory '/usr/src/BPI-M3-bsp/linux-sunxi'
Makefile:51: recipe for target 'kernel' failed
make: *** [kernel] Error 2
Build success!
root@osirisBPiM3:/usr/src/BPI-M3-bsp #
i build it use debian, the temperature so high is because. 16 line. all cpu is used
now i can not find your error message
???
What version of the " debian " or " Image " you use?
new. maybe 2016.5 c. vw
So as I understand it with you does not have any errors and compiling a success without a problem ?
Can you show your 3 files ?
BPI-M3-bsp/Makefile BPI-M3-bsp/linux-sunxi/arch/arm/mach-sunxi/pm/standby/Makefile BPI-M3-bsp/linux-sunxi/arch/arm/mach-sunxi/pm/standby/mksunxichecksum.c
… And provide links to pastebin.com ?
周末回家才能 把文件给你 现在在出差 你能听懂吗
我编译的时候没有任何错误 呵呵😊 要把gpu的编译我注释掉
i don’t understand what you said, can you speak in english>
hehe you can speak Chinese. great
不是真的,但大陆的角落,我想在我的生活详情,请访问
i am back. you try debian again?
everytime
(我看你睡觉去了)
CC drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_clock.o drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_wb.c: In function ‘WB_EBIOS_Set_Para’: drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_wb.c:314:94: warning: ‘cs_out_h0’ may be used uninitialized in this function [-Wmaybe-uninitialized] if((cs_out_w0 == fs_out_w0)&&(cs_out_h0 == fs_out_h0)&&(cs_out_w1 == fs_out_w1)&&(cs_out_h1 == fs_out_h1)) ^ drivers/video/sunxi/disp2/disp/de/lowlevel_sun8iw6/de_wb.c:314:68: warning: ‘cs_out_w0’ may be used uninitialized in this function [-Wmaybe-uninitialized] if((cs_out_w0 == fs_out_w0)&&(cs_out_h0 == fs_out_h0)&&(cs_out_w1 == fs_out_w1)&&(cs_out_h1 == fs_out_h1)) ^ LD drivers/usb/built-in.o LD drivers/video/sunxi/disp2/disp/disp.o LD drivers/video/sunxi/disp2/disp/built-in.o LD drivers/video/sunxi/built-in.o LD drivers/video/built-in.o LD drivers/built-in.o make[1]: Leaving directory ‘/root/BPI-M3-bsp/linux-sunxi’ Makefile:57: recipe for target ‘kernel’ failed make: *** [kernel] Error 2
Any suggestions how to compile the kernle on M3 ? I tried to compile it on Ubuntu. best regards
Frank
I made uImage with the topic and 2016-07-10-ubuntu-16.04-xenial-minimal-preview-bpi-m3.img. but, board does not jump to kernel address.
This is my boot log. ** Unable to read “bananapi/berryboot.img” from mmc 0:1 **
Booting kernel from Legacy Image at 48000000 …
Image Name: Linux-3.4.39-BPI-M3-Kernel Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5671816 Bytes = 5.4 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum … OK Loading Kernel Image … OK OK [ 4.956][mmc]: MMC Device 2 not found [ 4.960][mmc]: mmc not find,so not exit [ 4.964] Starting kernel …
[sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 2048MB ion_carveout reserve: 96m 128m ion_reserve_common: ion reserve: [0xb8000000, 0xc0000000]! ion_cma reserve: 120m 176m 512m ion_reserve_common: ion reserve: [0xa0000000, 0xc0000000]! ------sun8i_smp_init_ops----37-----
When I compare with normal boot log, it is not jump to kernel address.
Booting kernel from Legacy Image at 48000000 …
Image Name: Linux-3.4.39-BPI-M3-Kernel Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5717288 Bytes = 5.5 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum … OK Loading Kernel Image … OK OK [ 4.958][mmc]: MMC Device 2 not found [ 4.962][mmc]: mmc not find,so not exit [ 4.966] Starting kernel …
[sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 2048MB ion_carveout reserve: 96m 128m ion_reserve_common: ion reserve: [0xb8000000, 0xc0000000]! ion_cma reserve: 120m 176m 512m ion_reserve_common: ion reserve: [0xa0000000, 0xc0000000]! ------sun8i_smp_init_ops----37----- [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.4.39-BPI-M3-Kernel (root@8ac3451c5c3b) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 SMP PREEMPT Tue May 3 13:47:01 UTC 2016
I think it is related with compile environment.
If you share correct environment for compile. I will try it. (ubuntu version, gcc version and so on…)