Discussion

Kernel 3.17-rc1 [Work in progress]

4 4470
Post Last Edited by hendrikw01 at 2014-8-23 00:31

Post Last Edited by hendrikw01 at 2014-8-21 12:24

Hi,
i was able to boot 3.17-rc1 sunxi-next branch from http://github.com/mripard/linux.git
My Arch Linux ARM system is working but there are many downsides still.

Here are the results of my testings:

[Working]

- fully boot
- SMP via PSCI Interface
- UART
- MMC
- USB
- RTC

[NOT WORKING]

- eth is working but extremly unstable
  1. [    7.374912] stmmaceth 1c50000.ethernet: no reset control found
  2. [    7.521183] libphy: stmmac: probed
  3. [    7.541611] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
  4. [    7.579649] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
  5. [   25.243882] stmmaceth 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Copy the Code
- GPU
- SOUND
...

[HOWTO]

!! You need a U-boot with PSCI support from git://git.denx.de/u-boot-sunxi.git in order to get both cpu cores working !!

#
  1. git clone git://github.com/mripard/linux.git -b sunxi-next
Copy the Code
# Copy config to .config and sun7i-a20-bananapi.dts to arch/arm/boot/dts (Files are in bananapi.tar.gz)
# Modify arch/arm/boot/dts/Makefile and add sun7i-a20-bananapi.dts to the sun7i section
#
  1. ARCH=arm CROSS_COMPILE=<toolchain-prefix> LOADADDR=0x40008000 make menuconfig
Copy the Code
#
  1. ARCH=arm CROSS_COMPILE=<toolchain-prefix> LOADADDR=0x40008000 make uImage modules dtbs
Copy the Code
#
  1. ARCH=arm CROSS_COMPILE=<toolchain-prefix> LOADADDR=0x40008000 make INSTALL_MOD_PATH=output modules_install
Copy the Code
# Copy arch/arm/boot/uImage and arch/arm/boot/dts/sun7i-a20-bananapi.dtb to /boot
# Create boot.cmd (In my case it is for single partition layout) :
  1. ext2load mmc 0 0x46000000 /boot/uImage
  2. ext2load mmc 0 0x49000000 /boot/sun7i-a20-bananapi.dtb
  3. setenv bootargs console=ttyS0,115200 noinitrd init=/init root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait panic=10 ${extra}
  4. bootm 0x46000000 - 0x49000000
Copy the Code
#
  1. mkimage -C none -A arm -T script -d boot.cmd /boot/boot.scr
Copy the Code
# delete or rename existing uEnv.txt
# Copy output/lib/modules/ to /lib/modules
# Boot with UART connected


I hope this was useful and post your results.

bananapi.tar.gz

21.49 KB, Downloads: 54

config and dts

To get the new U-Boot bootloader that is needed for SMP:
  1. git clone git://git.denx.de/u-boot-sunxi.git
  2. cd u-boot-sunxi
  3. ./tools/genboardscfg.py
  4. make CROSS_COMPILE=arm-unknown-linux-gnueabihf- Bananapi_config
  5. make CROSS_COMPILE=arm-unknown-linux-gnueabihf-
Copy the Code
Copy to SD-card:
  1. dd if=/dev/zero of=/dev/mmcblk0 bs=1k count=1023 seek=1
  2. dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
Copy the Code

I will try next week

Post Last Edited by eierkopp at 2014-9-9 00:38

Reply 1# hendrikw01

Tried with 3.17-rc3 yesterday following your instructions.

Unfortunately the kernel could'n find partitions on the SD card so it didn't mount root. Root on SATA worked though.

Both cores work, no internat ethernet but an USB ethernet adapter is fine.

Important to me is, that the Pinacle 461e pctv driver works.

ryad  
I also tried to fiddle around with the experimental/sunxi-3.14 branch of the linux-bananapi repository. But as there are only a few configs in the arch/arm/configs/sunxi_defconfig preset, I was pretty sure, that it doesn't make much sense at the moment.

I'm really looking forward in the progress of the kernel, although I know 3.4 is a LTS release.

You have to log in before you can reply Login | Sign Up

Points Rules