Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: aarch64 support added



2018-04-21 0:58 GMT+03:00 Eddy Petrișor <eddy.petrisor+netbsd.org%gmail.com@localhost>:
>> Sorry for being ignorant, I'm new to NetBSD, is the arm64.img supposed to be
>> raw sdcard image that I could write to the SD card with dd?
>
> To answer my question, yes.
>
>>> For Allwinner SoCs (A64 and H5) you need to apply a board specific U-Boot
>>> to the image or SD card first.
>
> Isn't there a way for the specific u-boot to be already applied? Maybe
> defining a new machine which would be different just by setting the
> correct dtb name and applying the sunxi u-boot?
>
>> So I alter the image and dd with some command like the one below?
>>
>> dd if=uboot.img of=arm64.img bs=512 notrunc
>
> Alternatively, it can be done on the SD card (example from Linux):
>
> sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1k seek=8 conv=sync


> Nevermind, found the info about allwinner systems (somewhat outdated
> because now aarch64 is supposed to work):
>
> https://wiki.netbsd.org/ports/evbarm/allwinner/
>
> also found precompiled u-boot-pine64 package at
> https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/sysutils/u-boot-pine64/README.html
>
>
>
> But after putting everything together the boot process hangs after
> 'Starting kernel...':

Unless the 2017.11 u-boot is used

x86_64:u-boot-pine64-2017.11nb2.tgz(NetBSD 8.0):

from https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/sysutils/u-boot-pine64/README.html



U-Boot SPL 2017.11 (Mar 05 2018 - 04:12:02)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE:  BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000)
NOTICE:  Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):aa75c8da415158a94b82a430b2b40000778e851f
NOTICE:  BL3-1: Built : 01:14:17, Mar  1 2018
NOTICE:  Configuring AXP PMIC
NOTICE:  PMIC: fixing DRAM voltage from 1.24V to 1.36V
NOTICE:  PMIC: setup successful
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9


U-Boot 2017.11 (Mar 05 2018 - 04:12:02 +0000) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: Pine64+
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface7
eth0: ethernet@01c30000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
243 bytes read in 25 ms (8.8 KiB/s)
NetBSD/arm64 boot options
1:      NetBSD/arm64
Enter choice: 1:        NetBSD/arm64
Retrieving file: /netbsd.img
reading /netbsd.img
8421316 bytes read in 434 ms (18.5 MiB/s)
append: root=ld0a console=fb
Retrieving file: /dtb/allwinner/sun50i-a64-pine64-plus.dtb
reading /dtb/allwinner/sun50i-a64-pine64-plus.dtb
14271 bytes read in 44 ms (316.4 KiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Device Tree to 0000000049ff9000, end 0000000049fff7be ... OK

Starting kernel ...

 ok
uboot: args 0x49ff9000, 0, 0, 0

NetBSD/evbarm (fdt) booting ...
FDT /memory [0] @ 0x40000000 size 0x80000000
MEM: add 40000000-c0000000
MEM: res 49ff9000-49ffd000
Usable memory:
  40000000 - 49ff8fff
  49ffd000 - bfffffff
initarm: kernel phys start 40000000 end 40808000
MEM: res 40000000-40808000
bootargs: root=ld0a console=fb
  40808000 - 49ff8fff
  49ffd000 - bfffffff
------------------------------------------
kern_vtopdiff         = 0xffffffbfc0000000
physical_start        = 0x0000000040000000
kernel_start_phys     = 0x0000000040000000
kernel_end_phys       = 0x0000000040808000
physical_end          = 0x0000000049ff8000
VM_MIN_KERNEL_ADDRESS = 0xffffffc000000000
kernel_start_l2       = 0xffffffc000000000
kernel_start          = 0xffffffc000000000
kernel_end            = 0xffffffc000808000
kernel_end_l2         = 0xffffffc000a00000
(kernel va area)
(devmap va area)
VM_MAX_KERNEL_ADDRESS = 0xffffffffffe00000
------------------------------------------
ksyms: checking .text
ksyms: checking .rodata
ksyms: checking link_set_evcnts
ksyms: checking link_set_sysctl_funcs
ksyms: checking link_set_arm_platforms
ksyms: checking link_set_fdt_consoles
ksyms: checking link_set_modules
ksyms: checking link_set_ieee80211_funcs
ksyms: checking link_set_domains
ksyms: checking link_set_sdt_probes_set
ksyms: checking link_set_sdt_argtypes_set
ksyms: checking link_set_sdt_providers_set
ksyms: checking link_set_dkwedge_methods
ksyms: checking link_set_prop_linkpools
ksyms: checking .eh_frame
ksyms: checking .got
ksyms: checking .got.plt
ksyms: checking .data
ksyms: checking .data.cacheline_aligned
ksyms: checking .data.read_mostly
ksyms: checking .ident
ksyms: checking .comment
ksyms: checking .note.netbsd.ident
ksyms: checking .debug_str
ksyms: checking .debug_loc
ksyms: checking .debug_abbrev
ksyms: checking .debug_info
ksyms: checking .debug_ranges
ksyms: checking .debug_macinfo
ksyms: checking .debug_pubnames
ksyms: checking .debug_pubtypes
ksyms: checking .debug_line
ksyms: checking .shstrtab
ksyms: checking .symtab
ksyms: checking .strtab
Loaded initial symtab at 0xffffffc000714e28, strtab at
0xffffffc00079ac88, # entries 22852
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 8.99.14 (GENERIC64) #1: Thu Apr  5 01:13:19 EEST 2018
        eddy@feodora:/home/eddy/usr/src/pine64/netbsd/src/sys/arch/evbarm/compile/obj/GENERIC64
total memory = 2039 MB
avail memory = 1970 MB
armfdt0 (root)
fdt0 at armfdt0: Pine64+
fdt1 at fdt0
fdt2 at fdt0
cpus0 at fdt0
cpu0 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core)
cpu0: CPU Affinity 0-0-0-0
cpu0: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
cpu0: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
cpu0: Dcache line 64, Icache line 64
cpu0: L1 32KB/64B 2-way read-allocate VIPT Instruction cache
cpu0: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache
cpu0: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT
Unified cache
cpu0: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID
cpu0: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON,
rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
cpu1 at cpus0: disabled (uniprocessor kernel)
cpu2 at cpus0: disabled (uniprocessor kernel)
cpu3 at cpus0: disabled (uniprocessor kernel)
gic0 at fdt1: GIC
armgic0 at gic0: Generic Interrupt Controller, 224 sources (215 valid)
armgic0: 16 Priorities, 192 SPIs, 7 PPIs, 16 SGIs
fclock0 at fdt0: 24000000 Hz fixed clock
fclock1 at fdt0: 32768 Hz fixed clock
fclock2 at fdt0: 16000000 Hz fixed clock
gtmr0 at fdt0: Generic Timer
gtmr0: interrupting on GIC irq 27
armgtmr0 at gtmr0: ARMv7 Generic 64-bit Timer (24000 kHz)
sun50ia64ccu0 at fdt1: A64 CCU
sunxigpio0 at fdt1: PIO
gpio0 at sunxigpio0: 103 pins
sunxigpio0: interrupting on GIC irq 43
sunxigpio1 at fdt1: PIO
gpio1 at sunxigpio1: 13 pins
sunxigpio1: interrupting on GIC irq 77
sunxiusbphy0 at fdt1: USB PHY
sunxirsb0 at fdt1: RSB
sunxirsb0: interrupting on GIC irq 71
iic0 at sunxirsb0: I2C bus
pmic at iic0 addr 0x3a3 not configured
sun6idma0 at fdt1: DMA controller (8 channels)
sun6idma0: interrupting on GIC irq 82
/soc/syscon@1c00000 at fdt1 not configured
emac0 at fdt1: EMAC
emac0: interrupting on GIC irq 114
rgephy0 at emac0 phy 1: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 5
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
/soc/clock@1f01400 at fdt1 not configured
/soc/interrupt-controller@1f00c00 at fdt1 not configured
psci0 at fdt0: PSCI 0.2
sunximmc0 at fdt1: SD/MMC controller
sunximmc0: interrupting on GIC irq 92
/soc/usb@1c19000 at fdt1 not configured
ehci0 at fdt1: EHCI
ehci0: interrupting on GIC irq 104
ehci0: 1 companion controller, 1 port
usb0 at ehci0: USB revision 2.0
ohci0 at fdt1: OHCI
ohci0: interrupting on GIC irq 105
ohci0: OHCI version 1.0
usb1 at ohci0: USB revision 1.0
ehci1 at fdt1: EHCI
ehci1: interrupting on GIC irq 106
ehci1: 1 companion controller, 1 port
usb2 at ehci1: USB revision 2.0
ohci1 at fdt1: OHCI
ohci1: interrupting on GIC irq 107
ohci1: OHCI version 1.0
usb3 at ohci1: USB revision 1.0
com0 at fdt1: ns16550a, working fifo
com0: console
com0: interrupting on GIC irq 32
sunxitwi0 at fdt1: Marvell TWSI controller
sunxitwi0: interrupting on GIC irq 39
iic1 at sunxitwi0: I2C bus
sunxirtc0 at fdt1: RTC
sdmmc0 at sunximmc0
uhub0 at usb1: Generic (0000) OHCI root hub (0000), class 9/0, rev
1.00/1.00, addr 1
uhub1 at usb2: Generic (0000) EHCI root hub (0000), class 9/0, rev
2.00/1.00, addr 1
uhub2 at usb3: Generic (0000) OHCI root hub (0000), class 9/0, rev
1.00/1.00, addr 1
uhub3 at usb0: Generic (0000) EHCI root hub (0000), class 9/0, rev
2.00/1.00, addr 1
sdmmc0: SD card status: 4-bit, C10
ld0 at sdmmc0: <0x03:0x5344:SL16G:0x80:0x6b22d7c8:0x0f9>
ld0: 15193 MB, 7717 cyl, 64 head, 63 sec, 512 bytes/sect x 31116288 sectors
ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
boot device: ld0
root on ld0a dumps on ld0b
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
kern.module.path=/stand/evbarm/8.99.14/modules
WARNING: clock lost 6668 days
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
init: copying out path `/sbin/init' 11
Wed Apr  4 22:23:04 UTC 2018
Starting root file system check:
/dev/rld0a: 25901 files, 183684 used, 1702083 free (27 frags, 212757
blocks, 0.0% fragmentation)
/dev/rld0a: MARKING FILE SYSTEM CLEAN
Not resizing /: already correct size
swapctl: adding /dev/ld0b as swap device at priority 0
Starting file system checks:
/dev/rld0e: 32 files, 81992 free (20498 clusters)
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: arm64
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for DAD to complete for statically configured addresses...
Starting dhcpcd.
emac0: link state DOWN (was UNKNOWN)
Starting mdnsd.
mDNSResponder: mDNSResponder (Engineering Build) starting
mDNSResponder: Unable to parse DNS server list. Unicast DNS-SD unavailable
mDNSResponder: mDNSPlatformSourceAddrForDest: connect 1.1.1.1 failed
errno 49 (Can't assign requested address)
Building databases: dev, utmp, utmpx.
wsconscfg: Cannot open `/dev/ttyEcfg': Device not configured
wsconscfg: Cannot open `/dev/ttyEcfg': Device not configured
wsconscfg: Cannot open `/dev/ttyEcfg': Device not configured
wsconscfg: Cannot open `/dev/ttyEcfg': Device not configured
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Checking for core dump...
savecore: (null): _dumplo not in namelist
Apr  4 22:23:30 arm64 savecore: (null): _dumplo not in namelist
Starting devpubd.
Starting local daemons:.
Updating motd.
Starting ntpd.
Apr  4 22:23:31 arm64 ntpd[397]: ntp_rlimit: Cannot set RLIMIT_STACK:
Invalid argument
Starting sshd.
key_load_private: invalid format
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_rsa_key
key_load_private: invalid format
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_dsa_key
key_load_private: invalid format
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
key_load_private: invalid format
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.
/etc/rc.d/sshd exited with code 1
Starting inetd.
Starting cron.
The following components reported failures:
    /etc/rc.d/sshd
See /var/run/rc.log for more information.
Wed Apr  4 22:23:38 UTC 2018

NetBSD/evbarm (arm64) (console)

login:


Home | Main Index | Thread Index | Old Index