bpi-m64-firmware icon indicating copy to clipboard operation
bpi-m64-firmware copied to clipboard

Board can't boot

Open jwrz opened this issue 8 years ago • 37 comments

Hi, I prepared SD card according to your instruction (with problems becouse files from gdrive can't be wgeted but i did it manualy). When I try to boot my BPI M64 with this card I obtain black screen.. nothing happend. I repeat whole process but effect is still the same. Maybe you can publish image file with everything prepared?

jwrz avatar Feb 15 '17 07:02 jwrz

Black screen could mean three things:

a) You Monitor is not 1080p capable, so you will see a black screen. To find out it is this problem, please, boot the board with SD card and wait for a minute or so and just type on keyboard: ubuntu and look at the ethernet if you see some activities. You must have a DHCP server to release an IP to the board. Default is DHCP.

b) HDMI to DVI, there are some information that need to get pass through it, depending on your converter you may find trouble.

c) SD card corrupted or you SDHC card reader sucks, try to get another SD card or use another SD card reader.

I will push a DTB for 720p that could help.

avafinger avatar Feb 18 '17 23:02 avafinger

Thank you for replay. I have new observations. My monitor is capable of 1080p - when bpi is trying to boot, the monitor is showing text "1080p input." There is no HDMI-DVI adapters. I was trying to use 5 cards (GOODRAM 16GB SDHC toschiba 8G SDHC x2, SanDisk SD 4G x2) and 3 readers (3 laptops - diferent vendors too).

BPI try to boot a 3 or 4 times and turn off. While booting I saw white lines on screen, sometimes 4 tuxes.

jwrz avatar Feb 20 '17 05:02 jwrz

You should see 4 tuxes and then boot messages. "... and turn off" is an indication your PSU is under specifications, you need 5v and ~2.5A. The board i have comes with a barrel connector (DC input), are you using the barrel connector?

Try to boot without anything attached to the USB ports, just to see if it changes something.

After 3 or 4 attempts to boot without success your SD card may be corrupted, see: c. Check for SD card integrity

avafinger avatar Feb 20 '17 12:02 avafinger

I try Anker 60W 6x2.4A (USB) and lab power supply 10A (DC input) - I also checked it with oscilloscope (while booting) and it looks good. I have two m64 boards - both have the same problem. I checked SD integrity - you will not suprise, they are good.

Are there any logs created while booting, which I can check?

jwrz avatar Feb 20 '17 12:02 jwrz

Yes, you can grab the boot log with a TTL serial debug, please do so and then we can try to see what is going on with the board.

attach the complete boot log here or in gist if you prefer.

You did not answer: "The board i have comes with a barrel connector (DC input), are you using the barrel connector?"

avafinger avatar Feb 20 '17 20:02 avafinger

OK, I will grab it later. According to your question: ...lab power supply 10A (barrel connector - DC input)...

jwrz avatar Feb 21 '17 05:02 jwrz

I am also having the same issue after creating the SD card. I can't get any output via TTL using a baudrate of 115200. I am going to try using a different SD card reader.

jsoncylu avatar Feb 22 '17 00:02 jsoncylu

@setup: 115200 8-N-1

TX -> RX RX -> TX GND -> GND

avafinger avatar Feb 22 '17 00:02 avafinger

For those of you having trouble i would suggest using SanDisk Ultra 16 GB (or greater) 48 MB/s or 80 MB/s, i have several cards and have never run into trouble with Ultra. They are cheap, slow but works and save you time....

avafinger avatar Feb 22 '17 01:02 avafinger

Yes, I am using the one you suggested, and I used Ubuntu to format the card. I was using my laptop's built in SD card reader but that might be crappy.

jsoncylu avatar Feb 22 '17 01:02 jsoncylu

Does your board powers off also, or just black screen?

avafinger avatar Feb 22 '17 01:02 avafinger

I think just black screen. No tuxes. The LED stays red.

jsoncylu avatar Feb 22 '17 01:02 jsoncylu

Normal boot the LED stays red all the time, try the 720p DTB and see what happens. Mind the the HDMI connector has some trouble, sometimes i have to press against the board and the image pops up on screen. But i see Ethernet activities when the board gets the IP. Try to type the password: ubuntu after 30 / 50 secs and see if there is some eth0 activities.

avafinger avatar Feb 22 '17 01:02 avafinger

Hi, this is log file grabbed from serial port log.txt

jwrz avatar Feb 23 '17 16:02 jwrz

Hmm, ok. The board dropped to a u-boot command line, for whatever reason it is sensing ENTER on serial console debug and drops to u-boot shell. I can see by the log several ENTERs. Usually it would drop to shell and you would be able to type commands, type in the command: sunxi# run mmcboot [ENTER]

** Update: run mmcbootcmd

This will boot and load kernel as normal, but you have to find out why serial console (debug) gets [ENTER] if you don't have anything attached to serial console. I sometimes get this situation on Pine64 but not with the ENTERs you have, and i just type: run mmcboot and tada!

If you can't type anything, try to reboot until it finally boots or try to boot without anything attached to USB with the TTL attached and without it.

avafinger avatar Feb 23 '17 18:02 avafinger

I send this command by serial - "echo -ne 'run mmcbootcmd\r' > /dev/ttyAMA0 | cat /dev/ttyAMA0 > /home/jwrz/log4.txt".

log4.txt

jwrz avatar Feb 23 '17 21:02 jwrz

Almost there!

For some reason the board rebooted. I think you should review how you are powering the board or placing the board on a static surface. Here is the complete kernel boot log booting from eMMC: https://github.com/avafinger/bpi-m64-firmware/blob/master/img/dmesg_kernel_3.10.104.txt

I can see you seems to be a knowledge person or works in the field, you have all the stuff according to the specifications, PSU with 10A should be enough (maybe undervolt?), for instance do you have a second bpi-m64?

I am running out of ideas what you could try..... Have you flashed Android? Did it Work? Have you run any other image from SD CARD?

*Update: Maybe you are facing similar problem described here: https://forum.armbian.com/index.php/topic/3169-request-for-banana-pi-m64/?p=26306

avafinger avatar Feb 23 '17 22:02 avafinger

I will be trying. I will tell you, if I find the reason.

I have two M64 and both have the same problem. Image from banana-pi.org/m64-download.html (raspbian) with your DTB (https://github.com/avafinger/dtb_bpi-m64/pine64-plus.dtb not sun50i-a64-pine64-plus.dtb) works well, but without the mmc.

jwrz avatar Feb 24 '17 07:02 jwrz

I suspect there is two different batch of boards released. sounds like the culprit is u-boot in this case.

You could try this:

  • Write the (raspian) u-boot or the pine64 u-boot to your SD CARD
  • Create the partition the new u-boot requires (the one you have chosen above) and write the files in the partition and with the correct names

or

On the raspian SD CARD just update the kernel as described on section ** Updating Kernel to 3.10.104 **

If one of this works we know the problem is u-boot, in this case you should stick to original u-boot.

avafinger avatar Feb 24 '17 12:02 avafinger

@jwrz

Please, try this on the SD CARD image (from your HOST PC) and report back if anything changed:

mkdir -p m64_test
cd m64_test
wget https://github.com/avafinger/a64_bin/raw/master/ub-m64-sdcard-test.bin
sudo dd if=./ub-m64-sdcard-test.bin conv=notrunc bs=1k seek=19096 of=${SDCARD}
sync

where ${SDCARD} is you SD CARD like /dev/sdb

and umount your SD CARD after 'dd'

avafinger avatar Feb 24 '17 19:02 avafinger

Hi, I did it and... it works :) but to boot linux, it was needed to use 'echo -ne 'run mmcbootcmd\r' > /dev/ttyAMA0' again.

jwrz avatar Feb 26 '17 08:02 jwrz

Are you able to boot and run with the LCD touchscreen? I'm able to boot and run with the updated kernel if I only use HDMI. When I switch the device tree to use the LCD and install the touch drivers, it won't boot at all.

jodyono avatar Feb 28 '17 21:02 jodyono

Please, provide more info about your LCD, model, how you did install it. Are you able to grab the boot log? Can you see if you type: ubuntu after 30/50 secs you see eth0 activities?

I don't have the LCD but it should work...

On Tue, Feb 28, 2017 at 6:13 PM, Jody [email protected] wrote:

Are you able to boot and run with the LCD touchscreen? I'm able to boot and run with the updated kernel if I only use HDMI. When I switch the device tree to use the LCD and install the touch drivers, it won't boot at all.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avafinger/bpi-m64-firmware/issues/3#issuecomment-283162382, or mute the thread https://github.com/notifications/unsubscribe-auth/AP2lvw637nA2fsDExhf1priEQYSX-M_2ks5rhI4XgaJpZM4MBXkR .

avafinger avatar Feb 28 '17 21:02 avafinger

I have the official Banana Pi LCD touchscreen and it works with the BPI-M64 Android 6.0 LCD build. I'm going to make my Linux SD card again from scratch and then try what you have suggested. I'll let you know if I can get the boot log and/or see any Ethernet activity.

jodyono avatar Feb 28 '17 21:02 jodyono

Can you tell if LCD gets the backlight ON or turns ON with the new DTB for the LCD?

On Tue, Feb 28, 2017 at 6:50 PM, Jody [email protected] wrote:

I have the official Banana Pi LCD touchscreen https://www.amazon.com/Banana-Pi-Official-Touchscreen-Display/dp/B01BM5XARQ and it works with the BPI-M64 Android 6.0 LCD build. I'm going to make my Linux SD card again from scratch and then try what you have suggested. I'll let you know if I can get the boot log and/or see any Ethernet activity.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avafinger/bpi-m64-firmware/issues/3#issuecomment-283171486, or mute the thread https://github.com/notifications/unsubscribe-auth/AP2lv4TSugInz5QOyhvaFgm-aeijLxgkks5rhJaugaJpZM4MBXkR .

avafinger avatar Feb 28 '17 22:02 avafinger

In my last attempt, NOTHING turned-on.

jodyono avatar Feb 28 '17 22:02 jodyono

Ok, i will check the DTB again, maybe you need the u-boot with the LCD changes also. will see what i can do.

On Tue, Feb 28, 2017 at 7:14 PM, Jody [email protected] wrote:

In my last attempt, NOTHING turned-on.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avafinger/bpi-m64-firmware/issues/3#issuecomment-283178289, or mute the thread https://github.com/notifications/unsubscribe-auth/AP2lv-p0R8SIoEvX9DaGcU4PfOla-v3uks5rhJwqgaJpZM4MBXkR .

avafinger avatar Feb 28 '17 22:02 avafinger

Many thanks!

jodyono avatar Feb 28 '17 22:02 jodyono

please, try with this and report back if it works: https://github.com/avafinger/bpi-m64-firmware/raw/master/a64-2GB_LCD_TOUCH_OK.dtb

avafinger avatar Feb 28 '17 23:02 avafinger

@jodyono ,

Any news about the Touch?

avafinger avatar Mar 02 '17 20:03 avafinger