GithubHelp home page GithubHelp logo

sunxi-bsp's Introduction

sunxi-bsp

Getting Started

  1. Choose a board doing ./configure my_board, or ./configure to see the list of supported ones.

  2. Run 'make' to build hwpack or 'make help' to list available targets

Overview

This repository provides various scripts to help hacking devices with Allwinner SOC.

./scripts/ a1x-initramfs.sh - Create initramfs inside target device mk_ext4_rootfs.sh - Ext4 rootfs from tar.gz mk_hwpack.sh - Helper script for Makefile mk_livesuit_img.sh - Android or Linux livesuit image sunxi-media-create.sh - Flash SD card from hwpack mk_android.sh - Helper script for Makefile

sunxi-bsp's People

Contributors

amery avatar bigwhoopm avatar gaberowe avatar oliv3r avatar techn avatar turl avatar zareason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sunxi-bsp's Issues

/lib/firmware/*.fw

Is there a place to get firmware blobs? (/lib/firmware/*.fw)
It would be convenient if firmware was automatically included somewhere in the make hwpack process. ie for wlan on the cubietruck

u_boot_env_gen ????

the script mk_livesuit_img.sh call the binary u_boot_env_gen at line 69.
but this binary don't seem to work.
i've a message like file not found....
any idea ?

ps: i'm working in ubuntu 64bit.

Ben.

Cannot make u-boot

Hello
Cannot make u-boot-sunxi. I get the following error.
make: *** No rule to make target a13-olinuxino_config'. Stop.
make[1]: *** [a13-olinuxino_config] Error 1`
I think this issue has been handled previously for other boards but is not working for a13-olinuxino. I think it has to do with uppercase characters in u-boot-sunxi boards.cfg file.
Any solution ?
Thanks

ext2/3 drivers

I am not quite sure, but i think the option:
"Use ext4 for ext2/ext3 file systems" in linux kernel is stable and good enough to be used by default.
It works very well, yet making the kernel smaller.

use of $ROOTFS

line 198:
if [ "$DEST" = "usr/lib" ]; then
mv $ROOTFS/lib $ROOTFS/usr

I believe you mean $ROOTFSDIR, because $ROOTFS is null in my case (this could have been dangerous, as it tried to write into /lib)

u-boot-sunxi gives errors

I configured the sunx-bsp as ./configure cubietruck
Followed by make.

It gives me these errors: Any hints to solve the issue ??

arch/arm/lib/libarm.o: In function init_func_i2c': /home/yogesh/cubie/u-boot-sunxi/arch/arm/lib/board.c:159: undefined reference toi2c_init'
arch/arm/lib/libarm.o: In function board_init_r': /home/yogesh/cubie/u-boot-sunxi/arch/arm/lib/board.c:593: undefined reference tommc_initialize'
/home/yogesh/cubie/u-boot-sunxi/arch/arm/lib/board.c:655: undefined reference to eth_initialize' arch/arm/lib/libarm.o:(.data.init_sequence+0xc): undefined reference toenv_init'
arch/arm/cpu/armv7/start.o: In function cpu_init_crit': /home/yogesh/cubie/u-boot-sunxi/arch/arm/cpu/armv7/start.S:261: undefined reference tolowlevel_init'
common/libcommon.o: In function do_env_save': /home/yogesh/cubie/u-boot-sunxi/common/cmd_nvedit.c:694: undefined reference tosaveenv'
/home/yogesh/cubie/u-boot-sunxi/common/cmd_nvedit.c:695: undefined reference to env_name_spec' common/libcommon.o: In functionenv_relocate':
/home/yogesh/cubie/u-boot-sunxi/common/env_common.c:190: undefined reference to env_relocate_spec' common/libcommon.o: In functionjumptable_init':
/home/yogesh/cubie/u-boot-sunxi/include/_exports.h:32: undefined reference to i2c_write' /home/yogesh/cubie/u-boot-sunxi/include/_exports.h:32: undefined reference toi2c_read'
common/libcommon.o: In function run_command_list': /home/yogesh/cubie/u-boot-sunxi/common/main.c:1512: undefined reference toparse_string_outer'
common/libcommon.o: In function main_loop': /home/yogesh/cubie/u-boot-sunxi/common/main.c:448: undefined reference tou_boot_hush_start'
/home/yogesh/cubie/u-boot-sunxi/common/main.c:481: undefined reference to parse_file_outer' common/libcommon.o: In functionrun_command':
/home/yogesh/cubie/u-boot-sunxi/common/main.c:1440: undefined reference to parse_string_outer' common/libcommon.o: In functionstdio_init':
/home/yogesh/cubie/u-boot-sunxi/common/stdio.c:203: undefined reference to i2c_init' /home/yogesh/cubie/u-boot-sunxi/common/stdio.c:224: undefined reference todrv_nc_init'
drivers/serial/libserial.o: In function get_current': /home/yogesh/cubie/u-boot-sunxi/drivers/serial/serial.c:355: undefined reference todefault_serial_console'
drivers/serial/libserial.o: In function serial_initialize': /home/yogesh/cubie/u-boot-sunxi/drivers/serial/serial.c:259: undefined reference todefault_serial_console'
board/sunxi/libsunxi.o: In function board_init': /home/yogesh/cubie/u-boot-sunxi/board/sunxi/board.c:60: undefined reference tostatus_led_set'
/home/yogesh/WLAN/toolchain/linaro-2012.10/bin/arm-linux-gnueabihf-ld.bfd: BFD (crosstool-NG linaro-1.13.1-4.7-2012.10-20121022 - Linaro GCC 2012.10) 2.22 assertion fail /cbuild/slaves/oort12/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/binutils-2.22/bfd/elf32-arm.c:13830
/bin/bash: line 1: 26161 Segmentation fault (core dumped) /home/yogesh/WLAN/toolchain/linaro-2012.10/bin/arm-linux-gnueabihf-ld.bfd -pie -T /home/yogesh/cubie/build/cubietruck-u-boot/u-boot.lds --gc-sections -Bstatic arch/arm/cpu/armv7/start.o --start-group api/libapi.o arch/arm/cpu/armv7/libarmv7.o arch/arm/cpu/armv7/sunxi/libsunxi.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/crypto/libcrypto.o drivers/dfu/libdfu.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/battery/libbattery.o drivers/power/fuel_gauge/libfuel_gauge.o drivers/power/libpower.o drivers/power/pmic/libpmic.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/sound/libsound.o drivers/spi/libspi.o drivers/tpm/libtpm.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb-new/libusb_musb-new.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cbfs/libcbfs.o fs/cramfs/libcramfs.o fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/libfs.o fs/reiserfs/libreiserfs.o fs/sandbox/libsandboxfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o fs/zfs/libzfs.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/rsa/librsa.o lib/zlib/libz.o net/libnet.o post/libpost.o test/libtest.o board/sunxi/libsunxi.o --end-group /home/yogesh/cubie/build/cubietruck-u-boot/arch/arm/lib/eabi_compat.o -L /home/yogesh/WLAN/toolchain/linaro-2012.10/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3 -lgcc -Map u-boot.map -o u-boot
make[1]: *** [/home/yogesh/cubie/build/cubietruck-u-boot/u-boot] Error 139
make[1]: Leaving directory `/home/yogesh/cubie/u-boot-sunxi'

u-boot-sunxi fails to compile with recent gcc versions

In file included from /home/user/sunxi-bsp/u-boot-sunxi/include/linux/compiler.h:40:0,
                 from /home/user/sunxi-bsp/u-boot-sunxi/include/linux/byteorder/little_endian.h:12,
                 from /home/user/sunxi-bsp/build/a13-olinuxino-u-boot/include2/asm/byteorder.h:29,
                 from /home/user/sunxi-bsp/u-boot-sunxi/include/compiler.h:112,
                 from /home/user/sunxi-bsp/u-boot-sunxi/include/image.h:19,
                 from /home/user/sunxi-bsp/u-boot-sunxi/include/common.h:100,
                 from /home/user/sunxi-bsp/u-boot-sunxi/lib/asm-offsets.c:15:
/home/user/sunxi-bsp/u-boot-sunxi/include/linux/compiler-gcc.h:93:30: fatal error: linux/compiler-gcc6.h: No such file or directory
 #include gcc_header(__GNUC__)
                              ^
compilation terminated.

There are no compiler support files for either gcc 5 or 6, which according to apt-cache search gcc | grep gnueabi means it can no longer be compiled with built in packages in current versions of Debian, which only include cross compilers for gcc versions 5 and 6.

unable to make `u-boot` and so `hwpack` too

it looks like latest u-boot does not want boardname_config but just boardname.

At least this is the change I've made in Makefile modifying $(UBOOT_CONFIG) dropping the _config part.

This was necessary after I've manually updated each submodule to the latest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.