• sdk
  • arm-sdk
  • Issues
  • #23

Closed
Open
Opened 2017-08-01T01:57Z by Luzemario @luzemario

[ Cubietruck ] BAD CRC on environment

Cubieboard 3 image lost the settings of the board at each boot because the config file has a bad CRC.

Output of boot:

U-Boot SPL 2017.05-00394-g22f3368 (May 22 2017 - 22:09:57)
DRAM: 2048 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.05-00394-g22f3368 (May 22 2017 - 22:09:57 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Cubietech Cubietruck
I2C:   ready
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 1024x768 vga console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • Luzemario
    Luzemario @luzemario · 2017-07-31T21:58Z

    Does Devuan use sunxi tools? where is the "script.bin" file and the related tools?

    Edited by Luzemario 2017-07-31T22:05Z
  • parazyd
    parazyd @parazyd · 2017-11-10T07:36Z

    These images use mainline u-boot and mainline Linux where applicable. There's a boot.cmd in the first partition (/boot) where you can change the bootargs that get read by u-boot.

    However, this warning is very usual and I think I saw it on every device I've tried to boot.

  • Luzemario
    Luzemario @luzemario · 2017-11-10T15:03Z

    I am experiencing issues to make VGA the default output at boot... the settings are never saved. Will I need to recompile the entire DTS file to achieve this?

  • parazyd
    parazyd @parazyd · 2017-11-10T15:14Z

    What do you mean by "not saved"? Are you able to get a tty on vga?

  • Luzemario
    Luzemario @luzemario · 2017-11-10T15:21Z

    I get no VGA output at all after rebooting. The default output for current DTS is at HDMI only, as far as I can tell. After logging in with SSH, for example, I can sucessfully activate dual-head output, i.e. both HDMI and VGA.

    Can you confirm the default setting for "display_output" in the DTB used in Devuan?

    Edited by Luzemario 2017-11-10T15:28Z
  • Luzemario
    Luzemario @luzemario · 2017-11-10T15:39Z

    You can get more info here:

    http://linux-sunxi.org/Display

    http://linux-sunxi.org/Fex_Guide#disp_init_configuration

  • Luzemario
    Luzemario @luzemario · 2017-11-10T15:43Z

    @parazyd Nevermind... for some strange reason a bad block on the microSD was returning aways "0x0" to the "disp_mode" setting in the DTB image area...

    I got a new fresh image from Devuan repo and all works flawlessly. I am closing this bug.

  • Luzemario @luzemario closed · 2017-11-10T15:43Z

    closed