U-Boot for A64 git
#1
To make clear what Allwinner did to U-Boot I started a Git repository forked from mainline.

See https://github.com/longsleep/u-boot-pine64 

Branch pine64-hacks has applied the BSP changes on top of mainline 2014.07 tag and contains various required backports and fixes for Pine64 on top.

Disk image test releases for Pine64

I publish disk images which combine U-Boot, Kernel with a minimal initrd as base image for Linux distributions and for testing. **These images are for developers** and  are build with my set of Pine64 image building tools from here.

Download images: https://www.stdin.xyz/downloads/people/l...64-images/

Boot log for comparison: https://www.stdin.xyz/downloads/people/l...OOTLOG.txt

Release history:

**20160207-1**
- Initial public release with patched mainline Kernel

**20160221-3**
- Linux Kernel 3.10 based on BSP (see here)
- HDMI support
- MMC support
- USB support
- Ethernet support (with hack to force 100M)
- Wifi suport
- Enabled various Kernel settings for distribution and software support

**20160221-4**
- Updated initrd so it can boot /sbin/init on the second partition if found and executable

**20160227-1**
- Linux Kernel 3.10 based on BSP 1.2 (see here)
- ATF was cleaned up and Kernel is now entered in EL2 (see here)
- Device tree was updated to reflect changes in BSP 1.2 based Android builds
- Ethernet 1000M works
- Virtualization works (see KVM)

**20160304-1**
- Linux Kernel 3.10 security fixes CVE-2013-7446, CVE-2015-8543, CVE-2016-0728 backported (thanks to @janjwerner)
- Linux Kernel now has a tag (3.10.65-2-pine64)
- Added NFS support to Kernel
- Enabled GPIO via sysfs
- Enabled tun, loop and nbd devices
- Device tree was updated to improve thermal throttling situation
- Device tree was updated to get better 1000M Ethernet speeds and compatibility

**20160306-1**
- U-Boot now supports booti arm64 booting (enabled by default)
- Updated U-Boot defaults to boot with booti + Kernel Image and initrd (deprecating Android boot)
- Changed default locations of Kernel and Initrd to match what latest Linux distributions expect
- U-Boot now has a tag (v2014.07-1-pine64)
- U-Boot now loads initrd.img in default environment
- U-Boot now supports additional bootargs in default environment
- U-Boot now passes ethernet mac address to Kernel if found in environment

**20160311-1**
- Additional CPU frequencies were added to device tree

**20160319-1**
- Added Pine64 model detection. Will now boot with different device trees for Pine64 / Pine64 plus by default
- U-Boot updated to v2014.07-3-pine64
- Kernel and device trees updated to 3.10.65-3-pine64

**20160403-2**
- Kernel updated to 3.10.65-4-pine64

**20160423-1**
- U-Boot updated to  v2014.07-4-pine64
- U-Boot built-in default environment now supports boot.scr from first mmc partition
- Enable UART2, UART3, UART4 (Thanks to Martin Ayotte)
- Kernel updated to 3.10.65-7-pine64

**20160618-1**
- U-Boot updated to v2014.07-6-pine64
- Kernel updated to 3.10.102-0-pine64
- ATF updated to 1.0-0-pine64
- U-Boot and ATF are now compiled with gcc 5.3
- Initrd has been updated

**20170311-1**
- U-Boot updated to v2014.07-7-pine64
- Kernel updated to 3.10.105-0-pine64
- Initrd has been updated
- U-Boot now exposes sunxi_flash as USB mass storage device (via sunxi_ums cmd, thanks to Kamil Trzcinski)
- U-Boot now detects Pinebook based based on the boot disk (emmc, thanks to Kamil Trzcinski)
- U-Boot now exposes the boot key status as boot_key variable (thanks to Kamil Trzcinski)

Released images are signed with a detached GPG signature (.asc) signed by my personal key 0x090EF0DB. Get the key and verify that the download is intact and unmodified.
Code:
gpg --keyserver keyserver.ubuntu.com --recv-keys 090EF0DB
gpg --with-fingerprint simpleimage-pine64-*.xz.asc

To update both Kernel an U-Boot to the latest releases, run the following commands (as root):
Code:
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)
and reboot.

Cheers,
Simon


Messages In This Thread
U-Boot for A64 git - by longsleep - 01-09-2016, 01:11 AM
RE: U-Boot for A64 git - by longsleep - 02-07-2016, 11:44 AM
RE: U-Boot for A64 git - by taros - 02-08-2016, 04:48 PM
RE: U-Boot for A64 git - by taros - 02-07-2016, 04:39 PM
RE: U-Boot for A64 git - by longsleep - 02-08-2016, 02:52 PM
RE: U-Boot for A64 git - by longsleep - 02-08-2016, 05:17 PM
RE: U-Boot for A64 git - by patrickhwood - 02-08-2016, 11:08 PM
RE: U-Boot for A64 git - by taros - 02-09-2016, 10:39 AM
RE: U-Boot for A64 git - by longsleep - 02-09-2016, 04:19 PM
RE: U-Boot for A64 git - by longsleep - 02-14-2016, 02:48 AM
RE: U-Boot for A64 git - by longsleep - 02-21-2016, 06:27 AM
RE: U-Boot for A64 git - by longsleep - 02-27-2016, 06:46 AM
RE: U-Boot for A64 git - by tllim - 02-27-2016, 02:14 PM
RE: U-Boot for A64 git - by longsleep - 03-04-2016, 03:23 PM
RE: U-Boot for A64 git - by longsleep - 03-06-2016, 10:09 AM
RE: U-Boot for A64 git - by longsleep - 03-12-2016, 03:25 AM
RE: U-Boot for A64 git - by longsleep - 03-19-2016, 03:40 PM
RE: U-Boot for A64 git - by longsleep - 04-03-2016, 04:59 AM
RE: U-Boot for A64 git - by longsleep - 04-23-2016, 01:29 PM
RE: U-Boot for A64 git - by rahlquist - 04-23-2016, 02:17 PM
RE: U-Boot for A64 git - by rhkean - 04-29-2016, 01:57 PM
RE: U-Boot for A64 git - by longsleep - 04-29-2016, 02:02 PM
RE: U-Boot for A64 git - by rhkean - 04-29-2016, 05:17 PM
RE: U-Boot for A64 git - by rhkean - 04-29-2016, 08:16 PM
RE: U-Boot for A64 git - by rhkean - 05-02-2016, 07:21 AM
RE: U-Boot for A64 git - by spezi - 05-10-2016, 01:13 PM
RE: U-Boot for A64 git - by longsleep - 05-10-2016, 01:29 PM
RE: U-Boot for A64 git - by spezi - 05-11-2016, 01:03 PM
RE: U-Boot for A64 git - by jozzy - 05-12-2016, 02:45 AM
RE: U-Boot for A64 git - by mont3z - 05-29-2016, 10:59 AM
RE: U-Boot for A64 git - by longsleep - 05-29-2016, 11:02 AM
RE: U-Boot for A64 git - by mont3z - 05-29-2016, 08:17 PM
RE: U-Boot for A64 git - by mont3z - 06-02-2016, 12:26 PM
RE: U-Boot for A64 git - by longsleep - 06-19-2016, 09:34 AM
RE: U-Boot for A64 git - by longsleep - 03-11-2017, 12:10 PM
RE: U-Boot for A64 git - by ak_hepcat - 03-21-2017, 12:36 PM
RE: U-Boot for A64 git - by longsleep - 03-21-2017, 01:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine Board using linux stuck during boot sequence ktaragorn 4 9,119 03-30-2019, 06:48 AM
Last Post: ktaragorn
  Secure boot & OTP efuse program devangpanchal90 0 2,816 05-25-2018, 01:59 AM
Last Post: devangpanchal90
  boot process for pine a64 awaysu 1 4,781 01-24-2018, 05:09 AM
Last Post: xalius
  Can't boot headless after running update_uboot.sh Borglesnorgle Williams 2 4,762 08-17-2017, 04:08 AM
Last Post: Borglesnorgle Williams
Exclamation Pine A64 Plus Fails to Boot grobbs 35 46,251 06-28-2017, 08:53 AM
Last Post: sarav_sara
  Boot issues: What todo when you muck up your FSTAB file Dagremote 1 4,178 04-16-2017, 10:28 PM
Last Post: pfeerick
Question Pine64 cannot boot jamiechang917 6 10,697 04-16-2017, 10:21 PM
Last Post: pfeerick
  OpenWRT supports ARMv8 - arm64, u-boot problem? rgdonato 4 7,433 03-20-2017, 03:59 PM
Last Post: rgdonato
  USB OTG Boot devilsclaw 25 43,718 03-01-2017, 03:22 PM
Last Post: CaptainZalo
  How to boot alternative kernel image with u-boot? zhouer 3 7,449 06-27-2016, 04:15 AM
Last Post: ssvb

Forum Jump:


Users browsing this thread: 2 Guest(s)