Автор Тема: Не собирается u-boot  (Прочитано 734 раз)

Оффлайн VladPTZ

Не собирается u-boot
« : Март 16, 2016, 02:50:15 pm »
собираю по инструкции u-boot
Инструкция http://orangepi.pp.ua/index.php/topic,2.0.html

Выдает ошибку
cc1: all warnings being treated as errors
/home/opi/bootloader/u-boot-2011.09/config.mk:290: recipe for target 'usb_burn.o' failed
make[1]: *** [usb_burn.o] Error 1
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/usb_sunxi'
Makefile:543: recipe for target 'usb_sunxi/libsunxi_usb.o' failed
make: *** [usb_sunxi/libsunxi_usb.o] Error 2
test@ubuntu:/home/opi/bootloader/u-boot-2011.09$

Что делать? Как собрать u-boot?

Оффлайн AlDemin

  • Житель
  • ****
  • Сообщений: 406
  • Лайков: 106
  • Карма: +14/-1
  • OPi, OPi+, OPiOne, OPiZero, OPiPC2, BPi, RPiB.
    • Просмотр профиля
Re: Не собирается u-boot
« Ответ #1 : Март 16, 2016, 04:55:24 pm »
А что в логе повыше?
По моему при сборке u-boot нужен libusb-dev или могу ошибаться...

Оффлайн VladPTZ

Re: Не собирается u-boot
« Ответ #2 : Март 17, 2016, 12:17:07 pm »
Не помогло.
Ошибка так и осталась.

Лог побольше .

 CC      sunxi_v3/de/disp_manager.c ...
 CC      sunxi_v3/de/disp_private.c ...
 CC      sunxi_v3/de/disp_smart_backlight.c ...
 CC      sunxi_v3/de/disp_enhance.c ...
 CC      sunxi_v3/de/disp_capture.c ...
 CC      sunxi_v3/de/disp_hdmi.c ...
 CC      sunxi_v3/de/disp_vdevice.c ...
 CC      sunxi_v3/lcd/panels.c ...
 CC      sunxi_v3/lcd/lcd_source.c ...
 CC      sunxi_v3/lcd/default_panel.c ...
 CC      sunxi_v3/lcd/lt070me05000.c ...
 CC      sunxi_v3/lcd/t27p06.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_fcc.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_gsu.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_hal.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/disp_al.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_peak.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_rtmx.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_scaler_table.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_vep_table.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_vsu.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_feat.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_lcd.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_lti.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_fce.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_ase.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_bws.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_enhance.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_smbl.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_ccsc.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_dcsc.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_wb.c ...
 CC      sunxi_v3/de/lowlevel_sun8iw7/de_clock.c ...
 CC      sunxi_v3/hdmi/aw/hdmi_core.c ...
 CC      sunxi_v3/hdmi/aw/hdmi_edid.c ...
 CC      sunxi_v3/hdmi/aw/hdmi_interface.c ...
 CC      sunxi_v3/hdmi/drv_hdmi.c ...
 CC      sunxi_v3/hdmi/aw/hdmi_hal.c ...
 CC      sunxi_v3/hdmi/aw/hdmi_bsp_sun8iw7.c ...
 CC      sunxi_v3/tv/drv_tv.c ...
 CC      sunxi_v3/tv/de_tve.c ...
 CC      sunxi_v3/de/disp_tv.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/drivers/video_su nxi'
make -C drivers/watchdog/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/drivers/watchdo g'
rm -f libwatchdog.o; arm-linux-gnueabihf-ar rcs libwatchdog.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/drivers/watchdog '
make -C fs/aw_fs/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/aw_fs'
 CC      ff.c ...
 CC      diskio.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/aw_fs'
make -C fs/cramfs/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/cramfs'
rm -f libcramfs.o; arm-linux-gnueabihf-ar rcs libcramfs.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/cramfs'
make -C fs/ext2/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/ext2'
rm -f libext2fs.o; arm-linux-gnueabihf-ar rcs libext2fs.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/ext2'
make -C fs/fat/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/fat'
 CC      fat.c ...
 CC      fat_write.c ...
 CC      file.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/fat'
make -C fs/fdos/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/fdos'
rm -f libfdos.o; arm-linux-gnueabihf-ar rcs libfdos.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/fdos'
make -C fs/jffs2/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/jffs2'
rm -f libjffs2.o; arm-linux-gnueabihf-ar rcs libjffs2.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/jffs2'
make -C fs/reiserfs/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/reiserfs'
rm -f libreiserfs.o; arm-linux-gnueabihf-ar rcs libreiserfs.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/reiserfs'
make -C fs/ubifs/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/ubifs'
rm -f libubifs.o; arm-linux-gnueabihf-ar rcs libubifs.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/ubifs'
make -C fs/yaffs2/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/fs/yaffs2'
rm -f libyaffs2.o; arm-linux-gnueabihf-ar rcs libyaffs2.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/fs/yaffs2'
make -C lib/libfdt/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/lib/libfdt'
rm -f libfdt.o; arm-linux-gnueabihf-ar rcs libfdt.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/lib/libfdt'
make -C lib/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/lib'
 CC      crc7.c ...
 CC      crc16.c ...
 CC      crc32.c ...
 CC      display_options.c ...
 CC      errno.c ...
 CC      gunzip.c ...
 CC      hashtable.c ...
 CC      lmb.c ...
 CC      ldiv.c ...
 CC      net_utils.c ...
 CC      qsort.c ...
 CC      strmhz.c ...
 CC      ctype.c ...
 CC      div64.c ...
 CC      string.c ...
 CC      time.c ...
 CC      vsprintf.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/lib'
make -C lib/lzma/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/lib/lzma'
rm -f liblzma.o; arm-linux-gnueabihf-ar rcs liblzma.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/lib/lzma'
make -C lib/lzo/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/lib/lzo'
rm -f liblzo.o; arm-linux-gnueabihf-ar rcs liblzo.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/lib/lzo'
make -C lib/openssl/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/lib/openssl'
 CC      CRYPTO_malloc.c ...
 CC      err/err.c ...
 CC      objects/obj_dat.c ...
 CC      asn1/a_int.c ...
 CC      asn1/asn1_get_field_ptr.c ...
 CC      asn1/ASN1_INTEGER_get.c ...
 CC      asn1/asn1_item_ex_new.c ...
 CC      asn1/asn1_lock_free.c ...
 CC      asn1/asn1_new_free.c ...
 CC      asn1/asn1_put_object.c ...
 CC      asn1/asn1_string.c ...
 CC      asn1/ASN1_STRING_print.c ...
 CC      asn1/d2i_pu.c ...
 CC      asn1/d2i_rsapublikey.c ...
 CC      asn1/EVP_pkey.c ...
 CC      asn1/i2a_ASN1_INTEGER.c ...
 CC      asn1/i2d_pu.c ...
 CC      asn1/X509_PUBKEY_it.c ...
 CC      asn1/x_bignum.c ...
 CC      asn1/x_x509.c ...
 CC      asn1/RSAPublicKey_it.c ...
 CC      asn1/tasn_enc.c ...
 CC      asn1/stk.c ...
 CC      asn1/x509_extension_it.c ...
 CC      x509/x509_v3.c ...
 CC      x509/x509_ext.c ...
 CC      x509/extension.c ...
 CC      bn/bn_lib.c ...
 CC      bn/bn_word.c ...
 CC      bn/bn_bn2dec.c ...
 CC      bn/bn_print.c ...
 CC      bn/bn_asm.c ...
 CC      bn/bn_shift.c ...
 CC      bio/bio.c ...
 CC      bio/b_print.c ...
 CC      bio/bio_free.c ...
 CC      bio/bio_s_mem.c ...
 CC      bio/bio_read.c ...
 CC      lhash/lh_retrieve.c ...
 CC      rsa/rsa.c ...
 CC      external/openssl_ext.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/lib/openssl'
make -C lib/zlib/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/lib/zlib'
 CC      zlib.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/lib/zlib'
make -C memtest/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/memtest'
 CC      tests.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/memtest'
make -C net/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/net'
rm -f libnet.o; arm-linux-gnueabihf-ar rcs libnet.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/net'
make -C post/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/post'
rm -f libpost.o; arm-linux-gnueabihf-ar rcs libpost.o
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/post'
make -C sprite/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/sprite'
 CC      queue.c ...
 CC      sprite_queue.c ...
 CC      sprite_card.c ...
 CC      encrypt/encrypt.c ...
 CC      encrypt/twofish/twofish.c ...
 CC      encrypt/twofish/twofish_new.c ...
 CC      sparse/sparse.c ...
 CC      sprite_download.c ...
 CC      sprite_verify.c ...
 CC      firmware/imgdecode.c ...
 CC      sprite_privatedata.c ...
 CC      sprite_main.c ...
 CC      sprite_erase.c ...
 CC      sprite_recovery.c ...
 CC      sprite_led.c ...
 CC      sprite_secstorage.c ...
 CC      sprite_secure_object.c ...
 CC      sprite_storage_crypt.c ...
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/sprite'
make -C usb_sunxi/
make[1]: Entering directory '/home/opi/bootloader/u-boot-2011.09/usb_sunxi'
 CC      usb_mass.c ...
 CC      usb_efex.c ...
 CC      usb_fastboot.c ...
usb_burn.c: In function ‘sunxi_pburn_state_loop’:
usb_burn.c:1078:8: error: dereferencing type-punned pointer will break strict-al iasing rules [-Werror=strict-aliasing]
        pburn_flash_start    = *(int *)(cbw->CBWCDB + 4);
        ^
usb_burn.c:1095:8: error: dereferencing type-punned pointer will break strict-al iasing rules [-Werror=strict-aliasing]
        start   = *(int *)(cbw->CBWCDB + 4);  //▒▒▒▒ݵ▒ƫ▒▒▒
        ^
usb_burn.c:1096:8: error: dereferencing type-punned pointer will break strict-al iasing rules [-Werror=strict-aliasing]
        sectors = *(int *)(cbw->CBWCDB + 8);  //▒▒▒▒▒▒;
        ^
cc1: all warnings being treated as errors
/home/opi/bootloader/u-boot-2011.09/config.mk:290: recipe for target 'usb_burn.o ' failed
make[1]: *** [usb_burn.o] Error 1
make[1]: Leaving directory '/home/opi/bootloader/u-boot-2011.09/usb_sunxi'
Makefile:543: recipe for target 'usb_sunxi/libsunxi_usb.o' failed
make: *** [usb_sunxi/libsunxi_usb.o] Error 2
root@ubuntu:/home/opi/bootloader/u-boot-2011.09#

Оффлайн AlDemin

  • Житель
  • ****
  • Сообщений: 406
  • Лайков: 106
  • Карма: +14/-1
  • OPi, OPi+, OPiOne, OPiZero, OPiPC2, BPi, RPiB.
    • Просмотр профиля
Re: Не собирается u-boot
« Ответ #3 : Март 17, 2016, 12:46:42 pm »
По этой ошибке гугл нашел вот такой патч:
http://moinejf.free.fr/opi2/u-boot.patch
Что к чему и из за чего не разбирался, на работе.
http://moinejf.free.fr/opi2/
« Последнее редактирование: Март 17, 2016, 12:58:11 pm от AlDemin »