beagleboard / pocketbeagle

BeagleBoard.org PocketBeagle - ultra small, ultra flexible, ultra affordable
https://beagleboard.org/pocket
Creative Commons Attribution 4.0 International
276 stars 73 forks source link

Boot debugging #3

Closed yuvadm closed 6 years ago

yuvadm commented 6 years ago

I'm attempting to boot an existing BeagleBone image I have on an SD card (and then debug to see if there are any require changes for the new board), however I'm not getting any signs of life from the board other than a steady blue LED.

Are there any hardware pins I can use to get serial UART output from the bootloader to debug the boot sequence? Is there any official flow I can follow to get the board to boot from a well-known image?

jadonk commented 6 years ago

Yes, the UART0 pins are active logging during SPL/u-boot and the same port will also send boot requests (triggered by on-board ROM) if other boot sources are not identified (you can even boot over USB).

To see the console output, I recommend connecting one of these: https://shop.mikroe.com/ftdi-click (available from several distributors).

yuvadm commented 6 years ago

@jadonk thanks for the tip! Unfortunately I'm not getting anything on the UART0 pins. I'm connecting the USB connector to a 5V power supply, and I have an FTDI running screen /dev/ttyUSB0 115200 with RX/TX pairs crossed and a shared ground on any of the GND pins. Nothing is coming up over the wire, neither when I boot from an SD card, nor when there's no SD card at all. Is there anything I'm missing?

Also, can you describe how to boot over USB? That sounds interesting!

iphysi commented 6 years ago

Is there any official flow I can follow to get the board to boot from a well-known image?

... some tips that might help you using a USB connection (some cheaper USB cables will not work for data but will still provide power to the board and won't allow ssh or browsing to the board even though the board power led is on. Instead, use a short and well constructed Mini USB 2.0 cable for power and data - look for the usb2.0 logo on the cable as an indication of the better quality cables. If you are like me, there is a drawer somewhere close with a ratsnest of cables)

https://debian.beagleboard.org/images/bone-debian-9.1-iot-armhf-2017-09-21-4gb.img.xz ... working when booting from an unmodified /rootfs/boot/uEnv.txt and will blink the heartbeat led when booting is complete.

enable Generic eMMC Flasher:

make sure, these tools are installed: dosfstools rsync

cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

... then ssh into debian@192.168.7.2 (password=temppwd) ... or use your web browser to 192.168.7.2

However, removing the comment '#' from #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh so as to read

enable Generic eMMC Flasher:

make sure, these tools are installed: dosfstools rsync

cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

and booting from the SDcard will hang all 4 leds and the board gets hot (but does not let out the magic smoke)

// change /rootfs/etc/ssh/sshd_config for root login as follows...

LoginGraceTime 2m

PermitRootLogin prohibit-password // change to PermitRootLogin yes

PermitRootLogin yes

StrictModes yes

MaxAuthTries 6

MaxSessions 10

RobertCNelson commented 6 years ago

@Fuegomar there is no eMMC on the PocketBeagle, so don't "enable" /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh and expect it to do something..

However, removing the comment '#' from #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh so as to read

##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

Regards,

iphysi commented 6 years ago

Ok and thank you!

On Oct 2, 2017 11:24 AM, "Robert Nelson" notifications@github.com wrote:

@Fuegomar https://github.com/fuegomar there is no eMMC on the PocketBeagle, so don't "enable" /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh and expect it to do something..

However, removing the comment '#' from #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh so as to read

enable Generic eMMC Flasher:

make sure, these tools are installed: dosfstools rsync

cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

Regards,

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/beagleboard/pocketbeagle/issues/3#issuecomment-333586794, or mute the thread https://github.com/notifications/unsubscribe-auth/Adfhcx6gj2wTOGXuisMYxjT9U-M8CJu_ks5soQ4_gaJpZM4PiAyu .

wcontello commented 6 years ago

I am not clear from these posts whether I must modify files to get the Pocket Beagle to boot from an SD card flashed with the image "bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz" using the tool "Etcher" on mac OS X.

So the question is... if Etcher completed the flaming procedure onto a 32GB micro SD card and I insure the card in the Pocket Beagle, then power up from a USB port, should it boot?

When I observe is the BLU LED on solid (labeled "PWR") the four LEDs (labeled "USR23", "USR2", "USR1", and "USR0") never google or flash AND the board gets hot (not too hot to touch, but hot)

RobertCNelson commented 6 years ago

@wcontello did you press the power button?

wcontello commented 6 years ago

No. I did not press any buttons. I will try that.

Single press, then release... nothing Press, hold (to count of 1), release, nothing Press, hold (to count of 2), release, nothing Press, hold (to count of 5), release, nothing

Any other ideas?

wcontello commented 6 years ago

If I hold the power button to a count of 10, then the BLU LED turns off. If I press, then release, then LED turns back on. So I guess the image is incorrect?

wcontello commented 6 years ago

I can mount the SD card from a virtual Debian machine on macOS X. Here is a screenshot of the root folder: screen shot 2017-10-12 at 16 26 00

wcontello commented 6 years ago

The image shasum matched.

Proton:~ wayne$ shasum -b -a 256 ~/Downloads/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz be1eac7a5e526930155520215329a6c39071b82199c0745c300e68b7e6c7180b */Users/wayne/Downloads/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz

RobertCNelson commented 6 years ago

Humm, that's what i'm getting, why did the script generate a different value..

rcnee@debian:~/web/rootfs/bb.org/testing/2017-10-10/stretch-iot$ cat debian-9.2-iot-armhf-2017-10-10.tar.xz.sha256sum
167e8d3d6a4f105c4ae254c0dfb8170caeba9a2a070b2f048b20aa6c8586f584  debian-9.2-iot-armhf-2017-10-10.tar.xz

linode:

rcnee@debian:~/web/rootfs/bb.org/testing/2017-10-10/stretch-iot$ sha256sum bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz
be1eac7a5e526930155520215329a6c39071b82199c0745c300e68b7e6c7180b  bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz

nas:

voodoo@nuc-git:/var/www/html/rcn-ee.us/rootfs/bb.org/testing/2017-10-10/stretch-iot$ sha256sum bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz
be1eac7a5e526930155520215329a6c39071b82199c0745c300e68b7e6c7180b  bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz

Local copy i download that day:

voodoo@hades:/opt/images/bb.org/testing/2017-10-10/stretch-iot$ sha256sum bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz 
be1eac7a5e526930155520215329a6c39071b82199c0745c300e68b7e6c7180b  bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz
wcontello commented 6 years ago

This matches what's on the website: https://beagleboard.org/latest-images screen shot 2017-10-12 at 16 58 21

wcontello commented 6 years ago

Should I expect the image "bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz" to boot a Pocket Beagle when flashed to an SD card using Etcher?

And what should I expect when connected to a host system running macOS X?

Morantz commented 6 years ago

I have had no issues booting my PocketBeagle with this image.  I used Etcher on a Win10 Laptop to write image to a class 4 MicroSD card. -  Dan Brown  "My doctor says that I have a malformed public-duty gland and a natural deficiency in moral fibre, and that I am therefore excused from saving Universes." ~Douglas Adams

  From: wcontello <notifications@github.com>

To: beagleboard/pocketbeagle pocketbeagle@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Sent: Friday, October 13, 2017 8:50 AM Subject: Re: [beagleboard/pocketbeagle] Boot debugging (#3)

Should I expect the image "bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz" to boot a Pocket Beagle when flashed to an SD card using Etcher?And what should I expect when connected to a host system running macOS X?— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

| | Virus-free. www.avg.com |

wcontello commented 6 years ago

I am using a class 10 micro SD card from Lexar

metalheart commented 6 years ago

I did the same mistake - thought that OSD soc has emmc and uncommented line with emmc flashing - it possibly fried my pocketbeagle. it does not boot anymore and there is no any output on UART0 pins. Did you managed to start board after flashing proper image?

wcontello commented 6 years ago

I have not modified any files on the image. Are you saying you think the image is not correct?

jadonk commented 6 years ago

If the image is correct, this is likely an EEPROM issue. I will get an EEPROM programmer image.

wcontello commented 6 years ago

I do not understand

If the image is correct, this is likely an EEPROM issue. I will get an EEPROM programmer image.

Are you saying you can provide an image that will program an EEPROM on the Pocket Beagle? Are you saying I should locate, download, and boot to am image that can program the EEPROM?

metalheart commented 6 years ago

I found WP testpoint on board, does I2C is connected to EEPROM? Is there any information how to recover it? Also board has JTAG testpoints, could it be started under JTAG and access EEPROM IC?

jadonk commented 6 years ago

Well, the program I use to write the EEPROMs is at https://gist.github.com/jadonk/809337ed8435cdc25f99887746550ed2. There's some instructions there on hacking an image to assume you are booting on a PocketBeagle. Ultimately, I need to break this down into something simpler for you. :-(

wcontello commented 6 years ago

What if I do not have a BeagleBone Black?

wcontello commented 6 years ago

Can you suppose how a Pocket Beagle shipped without the EEPROM properly programmed?

wcontello commented 6 years ago

Can you trade me for the one I have?

yuvadm commented 6 years ago

@wcontello You are spamming this issue, please take further communications on this topic offline.

ahbushnell commented 6 years ago

Return it if it's defective.

On Oct 18, 2017 2:10 PM, "wcontello" notifications@github.com wrote:

Can you suppose how a Pocket Beagle shipped without the EEPROM properly programmed?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/beagleboard/pocketbeagle/issues/3#issuecomment-337697295, or mute the thread https://github.com/notifications/unsubscribe-auth/AHFDd9IJn_2ufjOVcrr3ZZdHjSvfoFW8ks5stk0fgaJpZM4PiAyu .

wcontello commented 6 years ago

Received another device and it booted perfectly. I did return the other device

ahbushnell commented 6 years ago

Great!

On Oct 23, 2017 5:58 PM, "wcontello" notifications@github.com wrote:

Received another device and it booted perfectly. I did return the other device

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/beagleboard/pocketbeagle/issues/3#issuecomment-338839257, or mute the thread https://github.com/notifications/unsubscribe-auth/AHFDdxkk7Dls2Nm-3a68Fu0J0KV_HKnbks5svTYrgaJpZM4PiAyu .