Jump to content

Fan KunPeng

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Fan KunPeng

  1. 9 hours ago, chwe said:

    how long did you wait then?

     

    unfortunately they're only 4b dev samples around right?

    it just stop there. Sometimes it stop earlier.

     

    I have tried to replace with radxa's dtb file but failed with kernel panic.

  2. 27 minutes ago, TonyMac32 said:

    Hmmm, does anyone else have a 1 GB model?

    Also can anyone provide any debug info that would aid in determining the cause?

    Sent from my Pixel using Tapatalk
     

     

    Here it is:

    Spoiler

    DDR Version 1.13 20180801
    In
    Channel 0: LPDDR4,50MHz
    CS = 0
    MR0=0x19
    MR4=0x3
    MR5=0x6
    MR8=0x0
    MR12=0x4D
    MR14=0x4D
    MR18=0x0
    MR19=0x0
    MR24=0x8
    MR25=0xFF
    Bus Width=32 Col=10 Bank=8 Row=14 CS=1 Die Bus-Width=16 Size=512MB
    Channel 1: LPDDR4,50MHz
    CS = 0
    MR0=0x19
    MR4=0x3
    MR5=0x6
    MR8=0x0
    MR12=0x4D
    MR14=0x4D
    MR18=0x0
    MR19=0x0
    MR24=0x8
    MR25=0xFF
    Bus Width=32 Col=10 Bank=8 Row=14 CS=1 Die Bus-Width=16 Size=512MB
    256B stride
    channel 0
    CS = 0
    MR0=0x19
    MR4=0x3
    MR5=0x6
    MR8=0x0
    MR12=0x72
    MR14=0x72
    MR18=0x0
    MR19=0x0
    MR24=0x8
    MR25=0xFF
    channel 1
    CS = 0
    MR0=0x19
    MR4=0x3
    MR5=0x6
    MR8=0x0
    MR12=0x72
    MR14=0x72
    MR18=0x0
    MR19=0x0
    MR24=0x8
    MR25=0xFF
    channel 0 training pass!
    channel 1 training pass!
    change freq to 400MHz 0,1
    channel 0
    CS = 0
    MR0=0x19
    MR4=0x3
    MR5=0x6
    MR8=0x0
    MR12=0x72
    MR14=0x72
    MR18=0x0
    MR19=0x0
    MR24=0x8
    MR25=0xFF
    channel 1
    CS = 0
    MR0=0x19
    MR4=0x3
    MR5=0x6
    MR8=0x0
    MR12=0x72
    MR14=0x72
    MR18=0x0
    MR19=0x0
    MR24=0x8
    MR25=0xFF
    channel 0 training pass!
    channel 1 training pass!
    change freq to 800MHz 1,0
    ch 0 ddrconfig = 0x101, ddrsize = 0x10
    ch 1 ddrconfig = 0x101, ddrsize = 0x10
    pmugrf_os_reg[2] = 0x3241F241, stride = 0x5
    OUT
    U-Boot SPL board init

    U-Boot SPL 2017.09-armbian (Feb 08 2019 - 12:13:00)
    booted from SD
    Trying to boot from MMC2
    NOTICE:  BL31: v1.3(debug):65aa5ce
    NOTICE:  BL31: Built : 10:47:37, Jun 19 2018
    NOTICE:  BL31: Rockchip release version: v1.1
    INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
    INFO:    Using opteed sec cpu_context!
    INFO:    boot cpu mask: 0
    INFO:    plat_rockchip_pmu_init(1151): pd status 3e
    INFO:    BL31: Initializing runtime services
    WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
    ERROR:   Error initializing runtime service opteed_fast
    INFO:    BL31: Preparing for EL3 exit to normal world
    INFO:    Entry point address = 0x200000
    INFO:    SPSR = 0x3c9


    U-Boot 2017.09-armbian (Feb 08 2019 - 12:13:00 +0100)

    Model: RockPi-4B
    DRAM:  1022 MiB
    DCDC_REG1@vdd_center: ; enabling
    DCDC_REG2@vdd_cpu_l: ; enabling
    DCDC_REG3@vcc_ddr: ; enabling (ret: -38)
    DCDC_REG4@vcc_1v8: set 1800000 uV; enabling
    LDO_REG1@vcc1v8_dvp: set 1800000 uV; enabling
    LDO_REG2@vcc3v0_touch: set 3000000 uV; enabling
    LDO_REG3@vcc1v8_pmu: set 1800000 uV; enabling
    LDO_REG4@vcc_sd: set 3300000 uV; enabling
    LDO_REG5@vcca3v0_codec: set 3000000 uV; enabling
    LDO_REG6@vcc_1v5: set 1500000 uV; enabling
    LDO_REG7@vcca1v8_codec: set 1800000 uV; enabling
    LDO_REG8@vcc_3v0: set 3000000 uV; enabling
    SWITCH_REG1@vcc3v3_s3: ; enabling (ret: -38)
    SWITCH_REG2@vcc3v3_s0: ; enabling (ret: -38)
    vcc1v8-s0@vcc1v8_s0: set 1800000 uV; enabling (ret: -38)
    dc-12v@dc_12v: set 12000000 uV; enabling (ret: -38)
    vcc-sys@vcc_sys: set 5000000 uV; enabling (ret: -38)
    vcc3v3-sys@vcc3v3_sys: set 3300000 uV; enabling (ret: -38)
    vcc-phy-regulator@vcc_phy: ; enabling (ret: -38)
    vdd-log@vdd_log: ; enabling (ret: -38)
    MMC:   sdhci@fe330000: 0, dwmmc@fe320000: 1
    SF: unrecognized JEDEC id bytes: ff, ff, ff
    *** Warning - spi_flash_probe_bus_cs() failed, using default environment

    In:    serial@ff1a0000
    Out:   serial@ff1a0000
    Err:   serial@ff1a0000
    Model: RockPi-4B
    Net:   eth0: ethernet@fe300000
    Hit any key to stop autoboot:  0
    Card did not respond to voltage select!
    mmc_init: -95, time 19
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found U-Boot script /boot/boot.scr
    2958 bytes read in 23 ms (125 KiB/s)
    ## Executing script at 00500000
    Boot script loaded from mmc 1
    102 bytes read in 19 ms (4.9 KiB/s)
    7450022 bytes read in 841 ms (8.4 MiB/s)
    18667528 bytes read in 2057 ms (8.7 MiB/s)
    93774 bytes read in 113 ms (809.6 KiB/s)
    ** File not found /boot/dtb/rockchip/overlay/rockchip-fixup.scr **
    ## Loading init Ramdisk from Legacy Image at 04000000 ...
       Image Name:   uInitrd
       Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
       Data Size:    7449958 Bytes = 7.1 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 01f00000
       Booting using the fdt blob at 0x1f00000
       Loading Ramdisk to 3d7e8000, end 3df02d66 ... OK
       reserving fdt memory region: addr=1f00000 size=7d000
       Loading Device Tree to 000000003d768000, end 000000003d7e7fff ... OK

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.174-rockchip64 (root@armbian.com) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11) ) #6 SMP Sun Feb 10 10:43:16 CET 2019
    [    0.000000] Boot CPU: AArch64 Processor [410fd034]
    [    0.000000] earlycon: Early serial console at MMIO32 0xff1a0000 (options '')
    [    0.000000] bootconsole [uart0] enabled
     

     

  3. On 4/25/2019 at 8:41 PM, mrsufgi said:

     

    Don't, it doesn't work (tried it myself).

     

    I also tried all available images (5.79 with 5.0.0 kernel), non of them works. :(

     

     

     

    I also have a ROCK Pi 4 -- MODEL A 1GB. Armbian can't boot. No hdmi output.

  4. I get kernel panic from TTL:

    espressobin login: [26830.163585] Internal error: synchronous parity or ECC error: 86000018 [#1] PREEMPT SMP
    [26830.168894] Modules linked in: zstd zram zsmalloc bridge stp llc sch_fq_codel ip_tables x_tables mv88e6xxx dsa_core
    [26830.179650] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.20-mvebu64 #5.75
    [26830.186812] Hardware name: Globalscale Marvell ESPRESSOBin Board (DT)
    [26830.193445] pstate: 60000085 (nZCv daIf -PAN -UAO)
    [26830.198382] pc : need_update+0x0/0xb0
    [26830.202138] lr : quiet_vmstat+0x4c/0x60
    [26830.206076] sp : ffffff8008f73e80
    [26830.209480] x29: ffffff8008f73e80 x28: 0000000007ed0018
    [26830.214946] x27: 0000000000000000 x26: ffffff8008f826c0
    [26830.220411] x25: 0000000000000000 x24: 000018670e807e00
    [26830.225877] x23: 0000000000000000 x22: 0000186738b3b700
    [26830.231343] x21: 0000186738b3b700 x20: 0000000000000000
    [26830.236809] x19: ffffffc03ffbed08 x18: 0000000000000000
    [26830.242273] x17: 0000000000000000 x16: 0000000000000000
    [26830.247740] x15: 0000000000000400 x14: 0000000000000400
    [26830.253205] x13: 0000000000000000 x12: 0000000000000001
    [26830.258671] x11: 0000000000037708 x10: 0000000000000910
    [26830.264136] x9 : ffffff8008f73e40 x8 : ffffff8008f83030
    [26830.269601] x7 : 0000000000000000 x6 : 0000000000000000
    [26830.275067] x5 : 0000004037055000 x4 : ffffff80090336c8
    [26830.280532] x3 : 0000000000000000 x2 : 0000000000000001
    [26830.285999] x1 : 0000004037055000 x0 : 0000000000000000
    [26830.291467] Process swapper/0 (pid: 0, stack limit = 0x000000006512fe99)
    [26830.298363] Call trace:
    [26830.300876]  need_update+0x0/0xb0
    [26830.304283]  tick_nohz_idle_stop_tick+0xb8/0x240
    [26830.309029]  do_idle+0x1c4/0x298
    [26830.312343]  cpu_startup_entry+0x24/0x28
    [26830.316379]  rest_init+0xd0/0xe0
    [26830.319694]  start_kernel+0x3ec/0x418
    [26830.323456] Code: 910003fd 97ffff11 a8c17bfd d65f03c0 (a9bd7bfd)
    [26830.329733] ---[ end trace ea6ec43db8163ab5 ]---
    [26830.334475] Kernel panic - not syncing: Attempted to kill the idle task!
    [26830.341372] SMP: stopping secondary CPUs
    [26830.345409] Kernel Offset: disabled
    [26830.348990] CPU features: 0x0,2080200c
    [26830.352840] Memory Limit: none
    [26830.355981] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

    I used Ubuntu 18.04.1 LTS armbian with 4.19.20-mvebu64 kernel. U-Boot info:

     

    U-Boot 2018.03-devel-18.12.3-gc9aa92c-dirty (Feb 18 2019 - 23:13:53 -0500)

    Model: Marvell Armada 3720 Community Board ESPRESSOBin
           CPU     1000 [MHz]
           L2      800 [MHz]
           TClock  200 [MHz]
           DDR     800 [MHz]
    DRAM:  1 GiB
     

  5. I directly use code https://github.com/MarvellEmbeddedProcessors/u-boot-marvell with blew modification:

     

    diff --git a/arch/arm/dts/armada-3720-espressobin.dts b/arch/arm/dts/armada-3720-espressobin.dts
    index 2ab039c..5922da0 100644
    --- a/arch/arm/dts/armada-3720-espressobin.dts
    +++ b/arch/arm/dts/armada-3720-espressobin.dts
    @@ -118,7 +118,8 @@
            marvell,pad-type = "fixed-1-8v";
            pinctrl-names = "default";
            pinctrl-0 = <&mmc_pins>;
    -       status = "disabled";
    +       #status = "disabled";
    +       status = "okay";
     
            #address-cells = <1>;
            #size-cells = <0>;

    It works well. It would be a bug of armbian build script, since upstream has added support of emmc and dts code changed.

  6. 8 hours ago, ebin-dev said:

    The current u-boot can be found here. It includes DDR3 (V5 EspressoBins) or DDR4 (V7 EspressoBins) in the name.

    Please use the correct one and post the output and the details about your board.

    Yes, I used the u-boot from the link. flash-image-DDR3-1g-2cs-800_800.bin. It can't detect emmc. Bug?

     

    7 hours ago, kostap said:

    Your u-boot DTB file does not have second controller enabled.

    Once both controllers are enabled in this DTB file, you will see them during uboot init phase

    
    TIM-1.0
    WTMI-devel-18.12.0-a0a1cb8
    WTMI: system early-init
    SVC REV: 4, CPU VDD voltage: 1.108V
    NOTICE:  Booting Trusted Firmware
    NOTICE:  BL1: v2.0(release):v2.0-313-gea14b3d53 (Marvell-devel-18.12.0)
    NOTICE:  BL1: Built : 18:37:55, Nov 29 2018
    NOTICE:  BL1: Booting BL2
    NOTICE:  BL2: v2.0(release):v2.0-313-gea14b3d53 (Marvell-devel-18.12.0)
    NOTICE:  BL2: Built : 18:37:56, Nov 29 2018
    NOTICE:  BL1: Booting BL31
    NOTICE:  BL31: v2.0(release):v2.0-313-gea14b3d53 (Marvell-devel-18.12.0)
    NOTICE:  BL31: Built : 18:3
    
    U-Boot 2018.03-devel-18.12.2-00315-g1d4ab62367 (Nov 29 2018 - 18:34:51 +0200)
    
    Model: Marvell Armada 3720 Community Board ESPRESSOBin (eMMC)
           CPU    @ 1000 [MHz]
           L2     @ 800 [MHz]
           TClock @ 200 [MHz]
           DDR    @ 800 [MHz]
    DRAM:  1 GiB
    Comphy chip #0:
    Comphy-0: USB3          5 Gbps    
    Comphy-1: PEX0          2.5 Gbps  
    Comphy-2: SATA0         6 Gbps    
    SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
    flags: ncq led only pmp fbss pio slum part sxs 
    PCIE-0: Link down
    MMC:   sdhci@d0000: 0, sdhci@d8000: 1                                                                       
    Loading Environment from MMC... OK                                                                          
    Model: Marvell Armada 3720 Community Board ESPRESSOBin (eMMC)                                               
    Net:   eth0: neta@30000 [PRIME]                                                                             
    Hit any key to stop autoboot:  0                                                                            
    Marvell>>
    

     

     

    Looks your u-boot version is older than mine. Where can I download it?

  7. The u-boot I used is flash-image-1g-2cs-800_800.bin. It can boot linux from usb and in linux, it can detect my emmc.

    root@espressobin:~# dmesg|grep -i mmc
    [    4.266090] mmc0: SDHCI controller on d00d8000.sdhci [d00d8000.sdhci] using ADMA
    [    4.308521] mmc0: new DDR MMC card at address 0001
    [    4.309517] mmcblk0: mmc0:0001 SEM04G 3.69 GiB
    [    4.310228] mmcblk0boot0: mmc0:0001 SEM04G partition 1 2.00 MiB
    [    4.310928] mmcblk0boot1: mmc0:0001 SEM04G partition 2 2.00 MiB
    [    4.311176] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 2.00 MiB, chardev (243:0)
    [    4.311340] mmc1: SDHCI controller on d00d0000.sdhci [d00d0000.sdhci] using ADMA
    [    4.316565]  mmcblk0: p1

    But u-boot can't detect emmc and boot from it:

    U-Boot 2018.03-devel-18.12.3-gc9aa92c-armbian (Dec 26 2018 - 13:45:06 +0100)
    
    Model: Marvell Armada 3720 Community Board ESPRESSOBin
           CPU     800 [MHz]
           L2      800 [MHz]
           TClock  200 [MHz]
           DDR     800 [MHz]
    DRAM:  1 GiB
    Comphy chip #0:
    Comphy-0: USB3          5 Gbps
    Comphy-1: PEX0          2.5 Gbps
    Comphy-2: SATA0         6 Gbps
    SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
    flags: ncq led only pmp fbss pio slum part sxs
    PCIE-0: Link down
    MMC:   sdhci@d0000: 0
    Loading Environment from SPI Flash... SF: Detected w25q32dw with page size 256 Bytes, erase size 4 KiB, total 4 MiB
    OK
    Model: Marvell Armada 3720 Community Board ESPRESSOBin
    Net:   eth0: neta@30000 [PRIME]
    Hit any key to stop autoboot:  0
    Marvell>> mmc list
    sdhci@d0000: 0
    Marvell>> mmc dev 0
    Card did not respond to voltage select!
    Marvell>> mmc dev 1
    MMC Device 1 not found
    no mmc device at slot 1

    Looks mmc dev0 is sd card and dev1 is emmc. This is different with boot script.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines