Hello,

On Fri, Jan 15, 2021 at 10:54 AM Mathieu Othacehe <othac...@gnu.org> wrote:
> It seems that Caliph Nomble succeeded to build a Pinebook Pro image and
> booted it, without graphics, after a few fixes:
> https://issues.guix.gnu.org/45584.
>
> You may want to try again :).

DONE, it's a bit better, this time initrd, kernel & dtb loaded properly.

But serial output stopped after "Starting kernel ..." which is probably
because of mismatched serial port speed, but I tried to relaunch screen
with 57600, 115200 and still go no output. [complete uboot log attached]

LCD screen stays black which is probably normal.

The image was built like the following:

# ./pre-inst-env guix describe
Git checkout:
  repository: /home/vince/dev/repo/guix
  branch: master
  commit: c03875b0361f114634caeb54935fe37a9b7b05af
# echo "(use-modules (gnu system images pinebook-pro))
pinebook-pro-barebones-os" > /tmp/os.scm
# ./pre-inst-env guix system disk-image -t pinebook-pro-raw /tmp/os.scm
[...]
/gnu/store/5fj3aha8jsyji9mpqzf2krakl08r9zlw-disk-image

Next I'll try the hints from:
https://issues.guix.gnu.org/45584

> >> There is almost no armhf hardware that is suitable
> >> for a build-from-source distro in terms of performance, thermal design
> >> and suitable storage (SD cards will not last for unless you pay a huge
> >> amount for the absolute highest quality). Binary distros like Trisquel
> >> are a much better option for armhf.
> >
> > The cross buildability *should* be kind of a solution for this.
>
> Yes we could always decide to stop supporting native ARMv7 substitutes
> and only focus on the cross-building to provide ready to use image for
> this architecture.

Isn't there a way to reconcile the 2 ? At least theoretically cross- or native-
compilation should give identical output, though I dunno how far that
is from reality (probably not good, or we would be doing just that)

> >> All that is not a reason to not support armhf, but if nobody is using
> >> it, then we should officially deprecate it, and not leave it in this
> >> in-between state.
> >
> > I'm not using it because I can't make it work.
>
> Don't hesitate to report the issues you encountered!

I've done it a few times already, for armhf, arm64, powerpc64, mipsel.

And I'll (re-)try anything if I'm hinted as what to try next.

The main problem from my PoV is the scatteredness of the infos.

Tchuss

-- 
Vincent Legoll
DDR Version 1.20 20190314
In
channel 0
CS = 0
MR0=0x98
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 400MHz 0,1
channel 0
CS = 0
MR0=0x98
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0x98
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
CS = 1
MR0=0x18
MR4=0x1
MR5=0xFF
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 800MHz 1,0
Channel 0: LPDDR4,800MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,800MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 251
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=119276MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=30528MB
FwPartOffset=2000 , 0
StorageInit ok = 191888
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3380ec0 signature is wrong
recovery gpt...
GPT 0x3380ec0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
LoadTrust Addr:0x4400
LoadTrust Addr:0x4800
LoadTrust Addr:0x4c00
LoadTrust Addr:0x5000
LoadTrust Addr:0x5400
LoadTrust Addr:0x5800
LoadTrust Addr:0x5c00
Addr:0x4000 No find trust.img!
LoadTrustBL error:-3
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3380ec0 signature is wrong
recovery gpt...
GPT 0x3380ec0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xe5970
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):22b599a
NOTICE:  BL31: Built : 11:03:32, Jul 10 2019
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(1181): 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
fdtdec_get_addr_size_fixed: reg: addr=ff770000, size=10000
fdtdec_get_addr_size_fixed: reg: addr=ff320000, size=1000


U-Boot 2017.09-04112-gb8e0774-dirty (Feb 07 2020 - 12:45:13 -0500)

Model: Pine64 RK3399 Pinebook Pro
PreSerial: 2
DRAM:  3.9 GiB
Sysmem: init
Relocation Offset: f5be7000, fdt: f3dd2238
I2c0 speed: 400000Hz
PMIC:  RK808
vdd_center 900000 uV
vdd_log init 900000 uV
rk_board_init PWM2 pinctrl init fail!
rk_board_init: vcc3v0_sdio cannot set regulator value -38
vdd_center 900000 uV
                DCDC_REG1@     vdd_center:  750000uV <-> 1400000uV, set  
900000uV, enabling | suspend     -61uV, disabled
                DCDC_REG4@        vcc_1v8: 1800000uV <-> 1800000uV, set 
1800000uV, enabling | suspend 1800000uV, enabling
                 LDO_REG1@     vcc1v8_dvp: 1800000uV <-> 1800000uV, set 
1800000uV, enabling | suspend 1800000uV, enabling
                 LDO_REG4@         vcc_sd: 3300000uV <-> 3300000uV, set 
3300000uV, enabling | suspend 3300000uV, enabling
                 LDO_REG5@  vcca3v0_codec: 3000000uV <-> 3000000uV, set 
3000000uV, enabling | suspend 3000000uV, enabling
                 LDO_REG7@  vcca1v8_codec: 1800000uV <-> 1800000uV, set 
1800000uV, enabling | suspend 1800000uV, enabling
                 LDO_REG8@        vcc_3v0: 3000000uV <-> 3000000uV, set 
3000000uV, enabling | suspend 3000000uV, enabling
              SWITCH_REG2@      vcc3v3_s0:     -61uV <->     -61uV, set       
0uV, enabling | suspend     -61uV, disabled
                   dc-12v@         dc_12v: 12000000uV <-> 12000000uV, set 
12000000uV, enabling | suspend     -61uV, enabling (ret: -38)
                  vcc-sys@        vcc_sys: 5000000uV <-> 5000000uV, set 
5000000uV, enabling | suspend     -61uV, enabling (ret: -38)
               vcc3v3-sys@     vcc3v3_sys: 3300000uV <-> 3300000uV, set 
3300000uV, enabling | suspend     -61uV, enabling (ret: -38)
        vcc-phy-regulator@        vcc_phy:     -61uV <->     -61uV, set     
-61uV, enabling | suspend     -61uV, enabling
            led-regulator@  led_regulator:     -61uV <->     -61uV, set     
-61uV, enabling | suspend     -61uV, enabling
           vcc5v0-host-en@    vcc5v0_host: 5000000uV <-> 5000000uV, set 
5000000uV, enabling | suspend     -61uV, enabling (ret: -38)
vcc5v0-usb3-host-regulator@vcc5v0_usb3_host:     -61uV <->     -61uV, set     
-61uV, enabling | suspend     -61uV, enabling
         vcc5v0-typec0-en@  vcc5v0_typec0:     -61uV <->     -61uV, set     
-61uV, enabling | suspend     -61uV, enabling
    vcc3v3-pcie-regulator@    vcc3v3_pcie: 3300000uV <-> 3300000uV, set 
3300000uV, disabled | suspend     -61uV, enabling
              vcc1v8-sdio@    vcc1v8_sdio: 1800000uV <-> 1800000uV, set 
1800000uV, enabling | suspend     -61uV, enabling (ret: -38)
              vcc3v0-sdio@    vcc3v0_sdio: 3000000uV <-> 3000000uV, set 
3000000uV, enabling | suspend     -61uV, enabling ; init 3000000uV (ret: -38)
vdd_log init 900000 uV
                  vdd_log@        vdd_log:  800000uV <-> 1400000uV, set  
900000uV, enabling | suspend     -61uV, enabling ; init  900000uV
MMC:   dwmmc@fe310000: 2, sdhci@fe330000: 0, dwmmc@fe320000: 1
Invalid bus 0 (err=-19)
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Pine64 RK3399 Pinebook Pro
RKPARM: Invalid parameter part table
Bootdev(atags): mmc 0
PartType: DOS
rockchip_get_boot_mode: Could not found misc partition
boot mode: None
init_resource_list: failed to get resource part, ret=-1
Can't find file:logo.bmp
failed to display uboot logo
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  aplll 816000 KHz
  apllb 816000 KHz
  dpll 800000 KHz
  cpll 24000 KHz
  gpll 800000 KHz
  npll 600000 KHz
  vpll 24000 KHz
  aclk_perihp 133333 KHz
  hclk_perihp 66666 KHz
  pclk_perihp 33333 KHz
  aclk_perilp0 266666 KHz
  hclk_perilp0 88888 KHz
  pclk_perilp0 44444 KHz
  hclk_perilp1 100000 KHz
  pclk_perilp1 50000 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
do_boot_rockchip: Could not find mmcsda2 part
Checking for mmc dev 1...
RKPARM: Invalid parameter part table
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1 for bootable partitions...
Scanning mmc 1:1 for extlinux or boot scripts...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
758 bytes read in 14 ms (52.7 KiB/s)
Ignoring unknown command: UI
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice: help
hgvhgelp not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice:
 not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice: help
help not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice: edit
edit not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice:
 not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice:
 not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice:
 not found
GNU Guix Boot Options
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Enter choice: 1
1:      GNU with Linux-Libre-Arm64-Generic 5.10.7
Retrieving file: 
/gnu/store/i35q3qw8plpn3b15f94g0iwqsrzcxj9q-raw-initrd/initrd.cpio.gz
13074541 bytes read in 963 ms (12.9 MiB/s)
Retrieving file: 
/gnu/store/rnjk2q8vf6lpfxsm2svp6k06c7aww9kn-linux-libre-arm64-generic-5.10.7/Image
31760896 bytes read in 7494 ms (4 MiB/s)
append: --root=38af4c98-52f4-b4e1-b285-334638af4c98 
--system=/gnu/store/8da8n1qsdzspbhahp1jyyvkjvf33nza9-system 
--load=/gnu/store/8da8n1qsdzspbhahp1jyyvkjvf33nza9-system/boot 
modprobe.blacklist=usbmouse,usbkbd quiet
Retrieving file: 
/gnu/store/rnjk2q8vf6lpfxsm2svp6k06c7aww9kn-linux-libre-arm64-generic-5.10.7/lib/dtbs/rk3399-pinebook-pro.dtb
** File not found 
/gnu/store/rnjk2q8vf6lpfxsm2svp6k06c7aww9kn-linux-libre-arm64-generic-5.10.7/lib/dtbs/rk3399-pinebook-pro.dtb
 **
Searching rockchip folder...
Retrieving file: 
/gnu/store/rnjk2q8vf6lpfxsm2svp6k06c7aww9kn-linux-libre-arm64-generic-5.10.7/lib/dtbs/rockchip/rk3399-pinebook-pro.dtb
60504 bytes read in 677 ms (86.9 KiB/s)
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   Loading Ramdisk to f3156000, end f3dce06d ... OK
   Loading Device Tree to 00000000f3144000, end 00000000f3155c57 ... OK
Adding bank: 0x00200000 - 0xf8000000 (size: 0xf7e00000)
Total: 368418.864 ms

Starting kernel ...

Reply via email to