Install on a Lemaker Banana Pro
I have purchased a Banana Pro.
Code:
U-Boot SPL 2014.10+dfsg1-5 (Apr 07 2015 - 22:00:53) Code:
sun7i# bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr} ; reset Code:
sun7i# tftp ${fdt_addr} slackwarearm-current/dtb/sun7i-a20-bananapi.dtb ; fdt addr ${fdt_addr} 0x40000 Code:
sun7i# tftp ${kernel_addr_r} slackwarearm-current/zImage-armv7 Code:
<snipped> Perhaps someone can give me a heads up. With my limited understanding I've run out of ideas to plug into a search engine. |
Quote:
The Banana Pi and Banana Pi Pro are different machines. The installation document refers only to the Banana Pi. I've updated it now to make that clear. Firstly I'd download the latest U-Boot for the Banana Pi Pro and put that on to the SD card. http://d-i.debian.org/daily-images/a....sdcard.img.gz Code:
Filename 'slackwarearm-current/dtb/sun7i-a20-bananapi.dtb'. I've updated the INSTALL_BANANAPI.TXT today to adjust a few bits of U-Boot config to allow the Linux console to be output over the HDMI port. Refresh your -current tree and start again but with the Pro version of U-Boot and using that DTB. You'll need to adjust all references to sun7i-a20-bananapi.dtb in the installation document but I'm not sure if anything else would need to be adjusted. Let me know if that works! |
Thank you very much Stuart! :^) I'll have a go at it this evening.
|
Quote:
Code:
sun7i# tftp ${fdt_addr} slackwarearm-current/dtb/sun7i-a20-bananapro.dtb ; fdt addr ${fdt_addr} 0x40000 Code:
done |
Quote:
https://wiki.debian.org/InstallingDebianOn/Allwinner The memory locations are different in the Slackware docs than to the Debian ones, since the Slackware installer is huge. I don't know if those memory locations work for the Pro, but the original and Pro are both A20 so the chances are that they'll work. You could try using the memory locations from the Debian doc and just boot the Slackware kernel without specifying an initrd. If the kernel at least boots with some output, that's the first piece achieved. It also could be just because your environment variables have something in them You could try resetting them to the default and re-configuring following the INSTALL_BANANAPI.TXT. I've just done it and it works on mine: Code:
env default -a |
I was just going through that Debian page with the intention of doing something like what you are suggesting and I have also downloaded their banana pro installer image to have a look around.
Code:
env default -a I have tried several times today with a fresh u-boot each time but it hangs each time. This last time I used dhcp instead of static IP with the same result. After it hung I ran nmap on my "server" and the Pro's assigned IP 192.168.1.15 never came up, tried ping, nada. However, after a reset I could ping the server from the Pro but not the other way around Code:
sunxi# ping 192.168.1.2 |
Quote:
Anyway, this has nothing to do with the Kernel not outputting anything. This issue is usually either due to memory locations, the wrong DTB (shouldn't be that), incorrect console settings or just that it's crashed. Not having output is a common issue on ARM with which I have many hours of familiarity. Have you plugged a monitor in to the HDMI port? It should not output anything there but you never know. Can you paste the output of: Code:
printenv When I was getting support working for the Banana Pi, there was a stage where the DTB built with the kernel.org Kernel was incorrect and I had to use another one from elsewhere. That was fixed a while ago for the Banana Pi but I don't know about the Pro. |
Here we go:
Code:
sunxi# printenv |
Also try removing all of the extra stuff from the boot args. I don't think it's needed at all:
Code:
setenv bootcmd_generic 'debug earlyprintk' |
I just had a go with the DTB from the Wheezy image that booted. No go. I'll go back to default env keep the Wheezy DTB and remove those boot args after I take the bowser for his walk.
Edit:Arghhhhhhhhh... I should have used the kernel too. I'll do it again. |
OK, I did it again this time with both the DTB and kernel from the Wheezy install image /boot directory:
Code:
tftp ${kernel_addr_r} slackwarearm-current/vmlinuz-4.0.5-bananapi Code:
sunxi# bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr} ; reset |
Quote:
If you follow one of the installation documents and install another distribution, do you get any of the Kernel output? |
Yes, I had a monitor hooked up and kernel output with that Wheezy install image but I didn't bother going into the installation proper. I'll get into it again this evening.
Cheers |
I have no trouble at all setting up and using a debian install image that is known to work as per Installing from an SD card image.
I thought I might understand this a little better by trying to create a new image based on the one that works. The original vfat /boot partition was only 54mb which was too small for the original debian sun7i-a20-bananapro.dtb, vImage-armv7 and initrd-armv7.img so I created a larger vfat /boot partition to fit. I modified the original debian boot.scr (as below) and put it back into /boot. No joy in Mudville, The kernel still does not start, however, u-boot reads the vImage, initrd, and dtb OK (see output below). I haven't quite gotten a handle on how this all goes together. Perhaps the flash-kernel address is (now) incorrect. In any case before I go any further I think I should have a go this weekend at doing up a u-boot, kernel and image from scratch. The only way I ever learn anything is by getting my hands dirty. boot.scr as modified in plain text: Code:
# Bootscript using the new unified bootcmd handling Code:
U-Boot 2014.10+dfsg1-5 (Apr 07 2015 - 22:02:59) Allwinner Technology |
Hi
I had a look through and established that the installation docs work on the original Banana Pi -- they do. Without having a Pro myself I don't think I can help much more. Normally I play around with a number of things to work out what's wrong, but there's no particular formula that I can describe. |
All times are GMT -5. The time now is 03:22 PM. |