Create a complete image - instruction manual?


(markov85) #1

Greetings everyone,

Can somebody post any instructions on how to build a complete image for Banana PI M2U? I guess debian or ubuntu target (headless and desktop both) should suffice.

Thank you.


#2

Hello markov85,

I didn´t try it, but maybe 6.2 is the answer!

https://bananapi.gitbooks.io/bpi-m2-ultra-open-source-single-board-computer/content/bpi-copy-command.html

Yours, migudent


(Олександр Кузьменко) #3

bpi team! what is uImage load address offset? its 0x47000000 ? or 0x46000000 or 0x42000000 ? thanks )


(bpi team) #4

please check here:

kaddr=0x47000000 kernel

rdaddr=0x49000000 uInit


(Олександр Кузьменко) #5

Bpi, have you try new official u-boot? About 2017. I have some troubles…


(bpi team) #6

uboot ,we have test newest , maybe you can reference here:


(Олександр Кузьменко) #7

Thanks. After some manipulations I have run mainline kernel 4.13 and mainline u-boot 2017.11. Now still have problems with console over hdmi. But it only requires more time)


(bpi team) #8

yes, for mainline support ,main issue is M2, M2U ,M2B for HDMI . Allwinner not open those code.


(Cenas Net) #9

Hi there can you post how did o compile and boot the new version uboot? Can you past the instructions? Is the sata speed better?


(Олександр Кузьменко) #10

You mean mainline u-boot? It’s doesn’t work well ( many hardware isn’t itialized at boot)


(Cenas Net) #11

Ok then. I am waiting for the new kernel and uboot to test again the sata speed. Tks.


#12

I’ve been waiting for mainline support over 1 year but now… completely gave up.

The only R40/V40 board vendor, @sinovoip have to request some proper supports continuously.

But I wonder if Allwinner have a will of supporting their own products. (R40/V40) Or, maybe they are not fully understanding their own chips even they have made them. :frowning:


(Олександр Кузьменко) #13

Simple instruction for u-boot

1) cd /tmp
2) export PATH=/home/<USERNAME>/gcc-linaro-7.1.1-2017.08-x86_64_arm-linux-gnueabihf/bin/:$PATH
3) git clone git://git.denx.de/u-boot.git && cd u-boot
4) make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- Bananapi_M2_Ultra_defconfig CONFIG_SPL=y
5) make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
6) dd if=u-boot-sunxi-with-spl.bin of=/dev/${sdcard} bs=1024 seek=8
7) mount /dev/${sdcard}1 /mnt && cd /mnt
8) nano boot.cmd (put content to boot.cmd) --->

setenv fdtfile sun8i-r40-bananapi-m2-ultra.dtb
setenv bootargs earlyprintk console=ttyS0,115200 disp.screen0_output_mode=1280x720p60 no_console_suspend consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait ${extra}
fatload mmc 0:1 0x47000000 zImage     # you need kernel in zImage format, not uImage
fatload mmc 0:1 0x49000000 sun8i-r40-bananapi-m2-ultra.dtb

bootz 0x47000000 - 0x49000000
9) mkimage -C none -A arm -T script -d boot.cmd boot.scr
10) cp /tmp/u-boot/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dtb /mnt/

11) cd / && umount /mnt

!!! dont forget copy zImage to card !!!