Jump to content

Run "echo 1 > /dev/watchdog" at first in boot file


Avtar Singh

Recommended Posts

I use orange pi zero with armbian xenial 5.38 with update kernal via apt-get upgrade

the issue is that sometime the device get hang at boot before the start of the kernal, and then we have to unplug it and plug it again

i want to start watchdog at boot itselft, so if this happen the device reboot automatically

i already sold 1000 devices, but now the sales stop due to this issue

please help 

Thanks

Board: Orangepi Zero
Link to comment
Share on other sites

Watchdog is part of the kernel and will not help you in this situation if, as you say, the device is hanging BEFORE the start of kernel loading

 

You need to provide the serial debug output from the u-boot phase of the boot process AND the output of armbianmonitor -u if you want some help, your question doesnt really provide any technical info that can be used to troubleshoot

Link to comment
Share on other sites

U-Boot SPL 2017.11-armbian (Jan 25 2018 - 08:04:30)
DRAM: 256 MiB
Trying to boot from MMC1


U-Boot 2017.11-armbian (Jan 25 2018 - 08:04:30 +0100) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Zero
DRAM:  256 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3708 bytes read in 204 ms (17.6 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
191 bytes read in 165 ms (1000 Bytes/s)
5837326 bytes read in 658 ms (8.5 MiB/s)
7497384 bytes read in 9204 ms (794.9 KiB/s)
Found mainline kernel configuration
29807 bytes read in 1269 ms (22.5 KiB/s)
504 bytes read in 1850 ms (0 Bytes/s)
Applying kernel provided DT overlay sun8i-h3-usbhost2.dtbo
504 bytes read in 1859 ms (0 Bytes/s)
Applying kernel provided DT overlay sun8i-h3-usbhost3.dtbo
4155 bytes read in 1727 ms (2 KiB/s)
Applying kernel provided DT fixup script (sun8i-h3-fixup.scr)
## Executing script at 44000000
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5837262 Bytes = 5.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Ramdisk to 49a6e000, end 49fff1ce ... OK
   reserving fdt memory region: addr=43000000 size=6d000
   Loading Device Tree to 499fe000, end 49a6dfff ... OK

Starting kernel ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines