您尚未登录。

楼主 #1 2021-05-17 14:33:01

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

硬件使用启划的开发板
_20210517141910.jpg

直接采用默认的香蕉派默认配置文件
执行make bananapi_m64_defconfig
得到可烧录文件/buildroot-2021.02.2/output/images/sdcard.img
使用Win32DiskImager烧录进SD卡后顺利启动
启动信息如下

U-Boot 2019.01 (May 13 2021 - 02:31:08 -0700) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: BananaPi-M64
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... MMC: block number 0x184a001 exceeds max(0xe90000)
Unable to use mmc 1:1... In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   phy interface7
eth0: ethernet@1c30000
Warning: usb_ether using MAC address from ROM
, eth1: usb_ether
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... 7 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 U-Boot script /boot.scr
276 bytes read in 0 ms
## Executing script at 4fc00000
19929600 bytes read in 955 ms (19.9 MiB/s)
23015 bytes read in 2 ms (11 MiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
   Loading Device Tree to 0000000049ff7000, end 0000000049fff9e6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.0.0 (zhang@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #2 SMP PREEMPT Thu May 13 18:31:42 PDT 2021
[    0.000000] Machine model: BananaPi-M64
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7ddde840-0x7dddffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] random: get_random_bytes called from start_kernel+0x9c/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s56024 r8192 d29992 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] Memory: 976836K/1048576K available (11132K kernel code, 1606K rwdata, 5300K rodata, 1344K init, 380K bss, 38972K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000582] Console: colour dummy device 80x25
[    0.000670] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000682] pid_max: default: 32768 minimum: 301
[    0.000777] LSM: Security Framework initializing
[    0.001468] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.001807] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.001848] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001868] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.024032] ASID allocator initialised with 32768 entries
[    0.032023] rcu: Hierarchical SRCU implementation.
[    0.041782] EFI services will not be available.
[    0.048057] smp: Bringing up secondary CPUs ...
[    0.080832] Detected VIPT I-cache on CPU1
[    0.080891] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.112578] Detected VIPT I-cache on CPU2
[    0.112611] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.144594] Detected VIPT I-cache on CPU3
[    0.144624] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.144698] smp: Brought up 1 node, 4 CPUs
[    0.144718] SMP: Total of 4 processors activated.
[    0.144726] CPU features: detected: 32-bit EL0 Support
[    0.144734] CPU features: detected: CRC32 instructions
[    0.145129] CPU: All CPU(s) started at EL2
[    0.145153] alternatives: patching kernel code
[    0.146496] devtmpfs: initialized
[    0.151741] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.151780] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.153303] pinctrl core: initialized pinctrl subsystem
[    0.154936] DMI not present or invalid.
[    0.155452] NET: Registered protocol family 16
[    0.155814] audit: initializing netlink subsys (disabled)
[    0.155954] audit: type=2000 audit(0.152:1): state=initialized audit_enabled=0 res=1
[    0.157586] cpuidle: using governor menu
[    0.157898] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.157911] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.159344] DMA: preallocated 256 KiB pool for atomic allocations
[    0.160940] Serial: AMBA PL011 UART driver
[    0.187053] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.187066] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.187074] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.187081] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.187602] cryptd: max_cpu_qlen set to 1000
[    0.188486] ACPI: Interpreter disabled.
[    0.190134] vgaarb: loaded
[    0.190465] SCSI subsystem initialized
[    0.191013] usbcore: registered new interface driver usbfs
[    0.191070] usbcore: registered new interface driver hub
[    0.191154] usbcore: registered new device driver usb
[    0.192217] pps_core: LinuxPPS API ver. 1 registered
[    0.192226] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.192253] PTP clock support registered
[    0.192435] EDAC MC: Ver: 3.0.0
[    0.194130] Advanced Linux Sound Architecture Driver Initialized.
[    0.195021] clocksource: Switched to clocksource arch_sys_counter
[    0.195203] VFS: Disk quotas dquot_6.6.0
[    0.195268] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.195502] pnp: PnP ACPI: disabled
[    0.203799] NET: Registered protocol family 2
[    0.204374] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)
[    0.204517] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.204624] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.204776] TCP: Hash tables configured (established 8192 bind 8192)
[    0.204920] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.204962] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.205116] NET: Registered protocol family 1
[    0.205541] RPC: Registered named UNIX socket transport module.
[    0.205548] RPC: Registered udp transport module.
[    0.205554] RPC: Registered tcp transport module.
[    0.205559] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.206343] kvm [1]: 8-bit VMID
[    0.206351] kvm [1]: IPA Size Limit: 40bits
[    0.207428] kvm [1]: vgic interrupt IRQ1
[    0.207544] kvm [1]: Hyp mode initialized successfully
[    0.214216] Initialise system trusted keyrings
[    0.214373] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    0.222787] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.223831] NFS: Registering the id_resolver key type
[    0.223864] Key type id_resolver registered
[    0.223870] Key type id_legacy registered
[    0.223884] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.224076] 9p: Installing v9fs 9p2000 file system support
[    0.229999] Key type asymmetric registered
[    0.230014] Asymmetric key parser 'x509' registered
[    0.230084] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.230096] io scheduler mq-deadline registered
[    0.230102] io scheduler kyber registered
[    0.231926] sun50i-de2-bus 1000000.de2: Error couldn't map SRAM to device
[    0.232641] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.239134] sun50i-a64-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.243556] EINJ: ACPI disabled.
[    0.257394] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.261031] SuperH (H)SCI(F) driver initialized
[    0.261522] msm_serial: driver initialized
[    0.271666] loop: module loaded
[    0.276759] libphy: Fixed MDIO Bus: probed
[    0.277345] tun: Universal TUN/TAP device driver, 1.6
[    0.278441] thunder_xcv, ver 1.0
[    0.278500] thunder_bgx, ver 1.0
[    0.278552] nicpf, ver 1.0
[    0.279654] hclge is initializing
[    0.279671] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.279677] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.279785] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.279791] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.279858] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.279865] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.279916] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.279923] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.280455] sky2: driver version 1.30
[    0.281321] VFIO - User Level meta-driver version: 0.3
[    0.282936] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.282948] ehci-pci: EHCI PCI platform driver
[    0.282998] ehci-platform: EHCI generic platform driver
[    0.283319] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.283348] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.284087] ehci-platform 1c1a000.usb: irq 15, io mem 0x01c1a000
[    0.299024] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.299738] hub 1-0:1.0: USB hub found
[    0.299777] hub 1-0:1.0: 1 port detected
[    0.300456] ehci-orion: EHCI orion driver
[    0.300696] ehci-exynos: EHCI EXYNOS driver
[    0.300833] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.300864] ohci-pci: OHCI PCI platform driver
[    0.300949] ohci-platform: OHCI generic platform driver
[    0.301140] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.301163] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.301532] ohci-platform 1c1a400.usb: irq 16, io mem 0x01c1a400
[    0.363708] hub 2-0:1.0: USB hub found
[    0.363741] hub 2-0:1.0: 1 port detected
[    0.364402] ohci-exynos: OHCI EXYNOS driver
[    0.365223] usbcore: registered new interface driver usb-storage
[    0.368890] sun6i-rtc 1f00000.rtc: registered as rtc0
[    0.368904] sun6i-rtc 1f00000.rtc: RTC enabled
[    0.369264] i2c /dev entries driver
[    0.374237] sun50i-a64-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[    0.374319] sun50i-a64-r-pinctrl 1f02c00.pinctrl: Linked as a consumer to regulator.0
[    0.374663] sdhci: Secure Digital Host Controller Interface driver
[    0.374670] sdhci: Copyright(c) Pierre Ossman
[    0.375211] Synopsys Designware Multimedia Card Interface Driver
[    0.376410] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.378043] ledtrig-cpu: registered to indicate activity on CPUs
[    0.379556] usbcore: registered new interface driver usbhid
[    0.379568] usbhid: USB HID core driver
[    0.383433] NET: Registered protocol family 17
[    0.383641] 9pnet: Installing 9P2000 support
[    0.383717] Key type dns_resolver registered
[    0.384370] registered taskstats version 1
[    0.384378] Loading compiled-in X.509 certificates
[    0.397106] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[    0.397539] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP803 found
[    0.405956] dcdc1: supplied by regulator-dummy
[    0.406320] dcdc2: supplied by regulator-dummy
[    0.406612] dcdc4: supplied by regulator-dummy
[    0.406856] dcdc5: supplied by regulator-dummy
[    0.406934] vcc-dram: Bringing 1360000uV into 1500000-1500000uV
[    0.407198] dcdc6: supplied by regulator-dummy
[    0.407472] dc1sw: supplied by regulator-dummy
[    0.407709] aldo1: supplied by regulator-dummy
[    0.407778] afvcc-csi: Bringing 3300000uV into 2800000-2800000uV
[    0.408054] aldo2: supplied by regulator-dummy
[    0.408148] vcc-pl: Bringing 1600000uV into 1800000-1800000uV
[    0.408341] aldo3: supplied by regulator-dummy
[    0.408597] dldo1: supplied by regulator-dummy
[    0.408847] dldo2: supplied by regulator-dummy
[    0.408942] vcc-wifi: Bringing 1800000uV into 3300000-3300000uV
[    0.409167] dldo3: supplied by regulator-dummy
[    0.409423] dldo4: supplied by regulator-dummy
[    0.409684] eldo1: supplied by regulator-dummy
[    0.409961] eldo2: supplied by regulator-dummy
[    0.410212] eldo3: supplied by regulator-dummy
[    0.410486] fldo1: supplied by regulator-dummy
[    0.410775] fldo2: supplied by regulator-dummy
[    0.411083] rtc-ldo: supplied by regulator-dummy
[    0.411302] ldo-io0: supplied by regulator-dummy
[    0.411578] ldo-io1: supplied by regulator-dummy
[    0.411869] drivevbus: supplied by regulator-dummy
[    0.412065] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[    0.412655] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.417998] sun50i-a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.418976] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.419088] sun50i-a64-pinctrl 1c20800.pinctrl: Linked as a consumer to regulator.0
[    0.419504] printk: console [ttyS0] disabled
[    0.440113] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 24, base_baud = 1500000) is a U6_16550A
[    1.653207] printk: console [ttyS0] enabled
[    1.658780] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.691989] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 25, base_baud = 1500000) is a U6_16550A
[    1.701116] serial serial0: tty port ttyS1 registered
[    1.711390] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
[    1.723575] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.733812] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.1
[    1.741176] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.770964] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.781675] sunxi-mmc 1c10000.mmc: Linked as a consumer to regulator.11
[    1.788351] sunxi-mmc 1c10000.mmc: Linked as a consumer to regulator.13
[    1.795908] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[    1.801337] vcc-wifi: voltage operation not allowed
[    1.830135] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.840804] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.851149] sunxi-mmc 1c11000.mmc: Linked as a consumer to regulator.1
[    1.863395] mmc0: new high speed SDHC card at address 5048
[    1.870451] mmcblk0: mmc0:5048 SD32G 28.9 GiB 
[    1.876965]  mmcblk0: p1 p2
[    1.887043] sunxi-mmc 1c11000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[    1.897462] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.907720] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.918712] sun4i-usb-phy 1c19400.phy: Linked as a consumer to regulator.22
[    1.927596] ehci-platform 1c1b000.usb: EHCI Host Controller
[    1.933198] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    1.941748] ehci-platform 1c1b000.usb: irq 17, io mem 0x01c1b000
[    1.963028] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.969827] hub 3-0:1.0: USB hub found
[    1.973631] hub 3-0:1.0: 1 port detected
[    1.979238] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.985877] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 4
[    1.993981] ohci-platform 1c1b400.usb: irq 18, io mem 0x01c1b400
[    2.014004] mmc2: new DDR MMC card at address 0001
[    2.020423] mmcblk2: mmc2:0001 8GME4R 7.28 GiB 
[    2.026137] mmcblk2boot0: mmc2:0001 8GME4R partition 1 4.00 MiB
[    2.033235] mmcblk2boot1: mmc2:0001 8GME4R partition 2 4.00 MiB
[    2.040495]  mmcblk2: p1 p2 p3 < p5 p6 p7 >
[    2.044716] mmcblk2: p1 start 25468928 is beyond EOD, truncated
[    2.051075] mmcblk2: p7 size 25165824 extends beyond EOD, truncated
[    2.063689] hub 4-0:1.0: USB hub found
[    2.067486] hub 4-0:1.0: 1 port detected
[    2.074258] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    2.085079] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    2.093770] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.099531] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 5
[    2.107966] hub 5-0:1.0: USB hub found
[    2.111759] hub 5-0:1.0: 1 port detected
[    2.116705] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T00:00:09 UTC (9)
[    2.125062] vcc-hdmi-dsi: disabling
[    2.128615] cpvdd: disabling
[    2.131582] ALSA device list:
[    2.134545]   No soundcards found.
[    2.140500] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    2.147821] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    2.158981] EXT4-fs (mmcblk0p2): recovery complete
[    2.164945] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.173103] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.180853] devtmpfs: mounted
[    2.184726] Freeing unused kernel memory: 1344K
[    2.199054] Run /sbin/init as init process
[    2.205678] random: fast init done
[    2.319044] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    2.331220] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    2.434769] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK
Initializing postgresql data base...
[    2.481612] hub 3-1:1.0: USB hub found
[    2.487982] hub 3-1:1.0: 4 ports detected
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql ... ok
creating subdirectories[    2.727670] random: postgres: uninitialized urandom read (4 bytes read)
 ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... [    2.779057] usb 3-1.1: new high-speed USB device number 3 using ehci-platform
100
selecting default shared_buffers ... [    2.863390] random: postgres: uninitialized urandom read (4 bytes read)
[    2.892620] hub 3-1.1:1.0: USB hub found
[    2.896751] hub 3-1.1:1.0: 4 ports detected
128MB
selecting default time zone ... [    2.983067] usb 3-1.3: new high-speed USB device number 4 using ehci-platform
[    3.191051] usb 3-1.4: new high-speed USB device number 5 using ehci-platform
[    3.383053] usb 3-1.1.1: new low-speed USB device number 6 using ehci-platform
[    3.505471] input: USB Optical Mouse as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.1/3-1.1.1:1.0/0003:0461:4D80.0001/input/input0
[    3.518493] hid-generic 0003:0461:4D80.0001: input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-1c1b000.usb-1.1.1/input0
[    3.607056] usb 3-1.1.4: new low-speed USB device number 7 using ehci-platform
UTC
creating configuration files ... ok
running bootstrap script ... [    3.734637] input: RCMCU iPazzPort as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.0/0003:0C45:7000.0002/input/input1
[    3.766155] random: postgres: uninitialized urandom read (4 bytes read)
[    3.808264] hid-generic 0003:0C45:7000.0002: input: USB HID v1.11 Keyboard [RCMCU iPazzPort] on usb-1c1b000.usb-1.1.4/input0
[    3.826451] input: RCMCU iPazzPort Mouse as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.1/0003:0C45:7000.0003/input/input2
[    3.840003] input: RCMCU iPazzPort System Control as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.1/0003:0C45:7000.0003/input/input3
[    3.911627] input: RCMCU iPazzPort Consumer Control as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.1/0003:0C45:7000.0003/input/input4
[    3.912819] random: postgres: uninitialized urandom read (32 bytes read)
[    3.925858] hid-generic 0003:0C45:7000.0003: input: USB HID v1.11 Mouse [RCMCU iPazzPort] on usb-1c1b000.usb-1.1.4/input1
ok
performing post-bootstrap initialization ... [    4.830710] random: postgres: uninitialized urandom read (4 bytes read)
sh: locale: not found
1970-01-01 00:00:13.539 UTC [1702] WARNING:  no usable system locales were found
[    6.357826] random: crng init done
1970-01-01 00:00:16.783 UTC [1702] FATAL:  could not write to file "base/12659/2608": No space left on device
1970-01-01 00:00:16.783 UTC [1702] STATEMENT:  CREATE DATABASE postgres;

child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql"
pg_ctl: database system initialization failed
done
Starting postgresql: pg_ctl: directory "/var/lib/pgsql" is not a database cluster directory
OK

Welcome to Bananapi M64
buildroot login: 

参考 https://whycan.com/t_3512.html 帖子添加设备树相关代码后打开linux内核配置
Devices Drivers->Graphics support->ARM devices->ARM Mali Display processor(此项已经打开)
Devices Drivers->Graphics support->LIMA (DRM support for ARM Mali 400/450 GPU)(此项找不到)

		mali: gpu@1c40000 {
			compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
			reg = <0x01c40000 0x10000>;
			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "gp",
					  "gpmmu",
					  "pp0",
					  "ppmmu0",
					  "pp1",
					  "ppmmu1",
					  "pmu";
			clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
			clock-names = "bus", "core";
			resets = <&ccu RST_BUS_GPU>;
		};
&mali {
	status = "okay";
};

重新编译得到烧录文件后在启动系统
在/dev/下找不到mali
有大神能指点一下吗?

离线

#2 2021-05-17 15:24:11

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

是在主线linux跑mali驱动对吧?





离线

楼主 #3 2021-05-17 15:29:41

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

是的   参考了 https://whycan.com/t_3512.html 但是失败了

离线

#4 2021-05-17 15:32:40

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

嗯,请稍等,我去问下 @达克罗德





离线

#5 2021-05-17 15:41:09

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,134
积分: 1086.5

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

我记得,要在kernel打开sunxi的DRM和panel驱动,没有DRM驱动,GPU是不会生成节点的

离线

楼主 #6 2021-05-17 15:45:26

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

达克罗德 说:

我记得,要在kernel打开sunxi的DRM和panel驱动,没有DRM驱动,GPU是不会生成节点的


搞定了,非常感谢“达克罗德”的帮助!
犯了个低级错误。缺少了 CONFIG_DRM_PANEL_SIMPLE=y
要选上这个就必须先选上以下这两个才行:
Graphics support  --->
    Backlight & LCD device support  ---
       <*> Lowlevel Backlight controls
要选上才能选下面的
    Display Panels  --->
       <*> support for simple panels

是这个吗?

离线

#7 2021-05-17 15:48:32

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

@达克罗德, 佩服大佬的记忆力

@zhang235hai 应该是这个,不确定可以选中按H, 会有提示的。





离线

#8 2021-05-17 17:07:34

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,134
积分: 1086.5

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

zhang235hai 说:
达克罗德 说:

我记得,要在kernel打开sunxi的DRM和panel驱动,没有DRM驱动,GPU是不会生成节点的


搞定了,非常感谢“达克罗德”的帮助!
犯了个低级错误。缺少了 CONFIG_DRM_PANEL_SIMPLE=y
要选上这个就必须先选上以下这两个才行:
Graphics support  --->
    Backlight & LCD device support  ---
       <*> Lowlevel Backlight controls
要选上才能选下面的
    Display Panels  --->
       <*> support for simple panels

是这个吗?

是这个!

离线

楼主 #9 2021-05-18 08:18:33

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

哇酷小二 说:

@达克罗德, 佩服大佬的记忆力

@zhang235hai 应该是这个,不确定可以选中按H, 会有提示的。

Devices Drivers->Graphics support->ARM devices->ARM Mali Display processor
Graphics support  --->
    Backlight & LCD device support  ---
       <*> Lowlevel Backlight controls
    Display Panels  --->
       <*> support for simple panels

上面三项都开启了
但是Devices Drivers->Graphics support->LIMA (DRM support for ARM Mali 400/450 GPU)死活找不到,不知道是不是还有其他的选项没有打开

离线

#10 2021-05-18 08:26:25

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

打开Kconfig看下 LIMA (DRM support for ARM Mali 400/450 GPU) 这个还依赖啥,再把那个开关打开。





离线

楼主 #11 2021-05-18 08:53:05

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

哇酷小二 说:

打开Kconfig看下 LIMA (DRM support for ARM Mali 400/450 GPU) 这个还依赖啥,再把那个开关打开。


我执行 arch=arm make kconfig报错
make[1]: *** No rule to make target 'kconfig'.  Stop.
Makefile:602: recipe for target 'kconfig' failed
make: *** [kconfig] Error 2

怎么打开Kconfig呢?我只用过make menuconfig

离线

#12 2021-05-18 08:55:55

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

不是这个流程呢,

是找到 Devices Drivers->Graphics support 这个目录下面的 Kconfig,

找到 LIMA (DRM support for ARM Mali 400/450 GPU)

看这个变量依赖其他哪些变量, 看在 .config 里面这些依赖的变量有没有启用。





离线

楼主 #13 2021-05-18 11:13:28

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

哇酷小二 说:

不是这个流程呢,

是找到 Devices Drivers->Graphics support 这个目录下面的 Kconfig,

找到 LIMA (DRM support for ARM Mali 400/450 GPU)

看这个变量依赖其他哪些变量, 看在 .config 里面这些依赖的变量有没有启用。

我找到这个了
_20210518111234.png

离线

楼主 #14 2021-05-20 15:33:22

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

哇酷小二 说:

不是这个流程呢,

是找到 Devices Drivers->Graphics support 这个目录下面的 Kconfig,

找到 LIMA (DRM support for ARM Mali 400/450 GPU)

看这个变量依赖其他哪些变量, 看在 .config 里面这些依赖的变量有没有启用。

我使用5.0的内核一直没有找到 LIMA (DRM support for ARM Mali 400/450 GPU)这个选项,更换成5.12内核之后就找到了
勾选编译之后报错如下图
02.png
然后我修改如下图后顺利编译得到sdcard.img
01.png
烧录进SD卡之后系统启动但是卡住了报错如下图
03.png
请问这个怎么解决呢?

离线

#15 2021-05-20 19:56:30

microxp
会员
注册时间: 2021-04-27
已发帖子: 40
积分: 21

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

太棒了,a64也支持主线了啊,又一个里程碑

离线

#16 2021-05-20 20:11:49

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题

根文件系统有问题





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn