您尚未登录。

#1 Re: 全志 SOC » 开源个 D1 / D1-H核心板 » 2022-03-27 23:32:48

楼主嫩不能传个pdf的原理图?

#2 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-16 11:37:26

达克罗德 说:

drm_fb_helper.c改了吗?

能不能把你的具体编译流程说一下,我这边除了用4.19.5然后手动打网上的patch外,其他还没有成功过

#4 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-16 11:29:27

下载的那个4.19.5的patch,里面的drm_fb_helper.c的patch用不了吧?
4.19的drm_fb_helper.c 有3000多行
5.x的drm_fb_helper.c才2000多行,patch没法打啊

#5 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-16 10:30:07

有重新编译了一遍5.3.6, 这次手动编译mali驱动,加载进去,运行测试程序还是死机

#6 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-15 16:45:34

达克罗德 说:

我是用的https://github.com/mripard/sunxi-mali
这里面的驱动编的mali.ko

buildroot也是用的这个地址的驱动编译的,你编译的时候有没有手动打补丁,还是直接用里面的build.sh编译的?

#7 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-14 21:52:53

我是直接用buildroot编译的,选择了mali-driver,选的5.5.5的内核,全自动完成,烧录后运行就直接死掉,串口都不响应了,只能硬重启
你是这样的吗?你是怎么编译的?

#8 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-14 19:31:13

NND, 终于跑起来了, 4.19.5内核外加补丁

#9 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-13 15:23:53

用drm 的fb后可以有 双缓冲了,但是现在程序又死在 eglSwapBuffers中了,直接不返回了

#10 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-13 11:04:08

换成4.19的内核也不行,现在的问题是 不管overalloc更改成200,还是300,系统中的y_virtual 都是600

# ./egl_test 
EGL Version: "1.4 Linux-r8p1-00rel0"
EGL Vendor: "ARM"
EGL Extensions: "EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_lock_surface EGL_KHR_lock_surface2 EGL_EXT_create_context_robustness EGL_ANDROID_blob_cache EGL_KHR_create_context EGL_KHR_partial_update EGL_KHR_create_context_no_error "
The mem is :2457600
The line_length is :4096
The xres is :1024
The yres is :600
The xres_v is :1024
The yres_v is :600
bits_per_pixel is :32
Error: eglCreateWindowSurface failed: 0x00003003

见了鬼了

#11 Re: 全志 SOC » 求助:A33主线uboot跑起来了,但是无法从 eMMC 启动 » 2020-03-13 10:26:42

达克罗德 说:

你的问题我都遇到过,我也试了好久,终于看到另外一个厂家dts是有定义dc1sw,于是我参考定义了一下
&reg_dc1sw {
        regulator-always-on;
    regulator-name = "vcc-lcd";
};

然后就正常了

对的,我也是这样解决的,设成永久在线

#12 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-13 10:25:49

达克罗德 说:

我也是遇到这个问题
2. set drm_leak_fbdev_smem on compile time (for some reason, passing in command line did not help) in drm_fb_helper.c
这个改了吗?我改了这个就好
另外记得把drm的Framebuffer设成200既2倍大小
还有如果有其它程序用fb比如xserver,要先关掉

这两个选项都打开,然后 OVERALLOC设成300,问题依旧
网上查了好久都没有解决

原来用的5.5.5的内核,现在在编译4.19的lts版本再试试

#13 Re: 全志 SOC » A33主线Linux跑起OpenGL/ES » 2020-03-13 08:01:43

达克罗德 说:

A33的GPU有两个方向,开源的Lima和非开源的全志OpenGL库
Lima+Mesa3D
LIMA只需要在内核选上LIMA和SUN4I的DRM驱动即可
Mesa3D可以在buildroot选上
不过最后我运行mesa的demo直接出错也找不到问题就放弃了,不知道是哪里的问题,网上教程太少不会玩。

这时候我切到第二个方案:
其实教程就是https://github.com/mripard/sunxi-mali

但是这里有个坑(我选的fbdev的库),导致一运行malitest就出错(malitest可以自己编一个https://github.com/linux-sunxi/sunxi-mali/tree/master/test)

查资料得到了信息
1. Must enable DRM_FBDEV_LEAK_PHYS_SMEM from kernel
2. set drm_leak_fbdev_smem on compile time (for some reason, passing in command line did not help) in drm_fb_helper.c
3. use latest r8p1

这回终于跑起来了

malitest和QT的OpenGL例子都运行正常

对了,最好在buildroot里选上sunxi-mali-mainline,这样它会自动给你生成一个启动时加载mali.ko的脚本。
当然,自己modprobe也是可以的


运行malitest的结果,可以验证是否正确

这里有点比较老的介绍,虽然过时了,但是比较系统
https://linux-sunxi.org/Mali_binary_driver


我这边运行 test 程序直接出现 Error: eglCreateWindowSurface failed: 0x00003003
查询错误码 是 EGL_BAD_ALLOC, 用的r8p1 fbdev ,你又遇到这个问题吗?

#14 Re: 全志 SOC » 求助:A33主线uboot跑起来了,但是无法从 eMMC 启动 » 2020-03-12 21:58:16

bananapro login: root
Password:
# [   32.484107] vcc3v0: disabling
[   32.487196] vcc3v3: disabling
[   32.490567] dc1sw: disabling

登录经来不久,突然出现这个,然后屏幕就关闭了,不知道是背光关闭了还是屏幕整个都断电了

下面是启动过程中电源的信息

[    0.504459] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator

[    1.171865] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator

[    1.438286] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator

[    1.474459] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.484805] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator

[    1.577076] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.588384] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.599218] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.609519] sun8i-a23-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator

[    1.625978] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP223 found

[    1.658965] dcdc1: supplied by regulator-dummy

[    1.670930] dcdc2: supplied by regulator-dummy
[    1.676313] dcdc3: supplied by regulator-dummy
[    1.681068] dcdc4: supplied by regulator-dummy
[    1.685857] dcdc5: supplied by regulator-dummy
[    1.690584] dc1sw: supplied by vcc-3v0
[    1.694627] dc5ldo: supplied by vcc-dram
[    1.698882] aldo1: supplied by regulator-dummy
[    1.703651] aldo2: supplied by regulator-dummy
[    1.708436] aldo3: supplied by regulator-dummy
[    1.713197] eldo1: supplied by vcc-3v0
[    1.717267] eldo2: supplied by vcc-3v0
[    1.721270] eldo3: supplied by vcc-3v0
[    1.725636] dldo1: supplied by regulator-dummy

[    1.745869] dldo2: supplied by regulator-dummy
[    1.754783] dldo3: supplied by regulator-dummy

[    1.767791] dldo4: supplied by regulator-dummy
[    1.772951] rtc_ldo: supplied by regulator-dummy
[    1.778193] ldo_io0: supplied by regulator-dummy
[    1.783115] ldo_io1: supplied by regulator-dummy

[    1.802743] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator

[    1.825037] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator

[    1.878687] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator

[    1.936819] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.948202] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator

[    2.116584] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator

[    2.284439] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator

估计是设备树中的设定跟实际板子不一致

#15 Re: 全志 SOC » 求助:A33主线uboot跑起来了,但是无法从 eMMC 启动 » 2020-03-12 21:41:55

达克罗德 说:

咋弄好的?

我把u-boot精简掉的选项又加回去了,就好了

你的axp223各电源的名字,在设备树文件里是如何更改来适配这个开发板的或驱动的,
我这边启动的过程中有几路电源,驱动找不到呢,启动完成后屏幕会黑掉,貌似背光关闭了

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.5.5 (kevin@kevin-ThinkPad-Edge-E440) (gcc version 9.2.0 (Buildroot 2020.02-rc3-00030-g5f63dfdf2f)) #4 SMP PREEMPT Thu Mar 12 17:35:20 CST 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Sinlinx SinA33
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x5dc00000
[    0.000000] On node 0 totalpages: 130472
[    0.000000]   Normal zone: 1020 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130472 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s31628 r8192 d21620 u61440
[    0.000000] pcpu-alloc: s31628 r8192 d21620 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129452
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk1p2 rootwait panic=10
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 489672K/521888K available (7168K kernel code, 448K rwdata, 1796K rodata, 1024K init, 242K bss, 15832K reserved, 16384K cma-reserved, 0K highmem)
[    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=8 to nr_cpu_ids=4.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x45c with crng_init=0
[    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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000248] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000711] Console: colour dummy device 80x30
[    0.000759] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000773] pid_max: default: 32768 minimum: 301
[    0.000919] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000934] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001666] CPU: Testing write buffer coherency: ok
[    0.002097] /cpus/cpu@0 missing clock-frequency property
[    0.002122] /cpus/cpu@1 missing clock-frequency property
[    0.002141] /cpus/cpu@2 missing clock-frequency property
[    0.002163] /cpus/cpu@3 missing clock-frequency property
[    0.002175] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060080] Setting up static identity map for 0x40100000 - 0x40100060
[    0.080051] rcu: Hierarchical SRCU implementation.
[    0.120114] smp: Bringing up secondary CPUs ...
[    0.200648] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.280733] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.360831] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.360944] smp: Brought up 1 node, 4 CPUs
[    0.360966] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.360972] CPU: All CPU(s) started in HYP mode.
[    0.360978] CPU: Virtualization extensions available.
[    0.361662] devtmpfs: initialized
[    0.367534] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.367899] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.367927] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.368822] pinctrl core: initialized pinctrl subsystem
[    0.369426] thermal_sys: Registered thermal governor 'step_wise'
[    0.370347] NET: Registered protocol family 16
[    0.381695] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.382652] cpuidle: using governor menu
[    0.382887] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.382896] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.401652] SCSI subsystem initialized
[    0.401897] libata version 3.00 loaded.
[    0.402119] usbcore: registered new interface driver usbfs
[    0.402170] usbcore: registered new interface driver hub
[    0.402266] usbcore: registered new device driver usb
[    0.402497] pps_core: LinuxPPS API ver. 1 registered
[    0.402506] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.402528] PTP clock support registered
[    0.402942] Advanced Linux Sound Architecture Driver Initialized.
[    0.403856] clocksource: Switched to clocksource arch_sys_counter
[    0.404645] simple-framebuffer 5fda8000.framebuffer: framebuffer at 0x5fda8000, 0x258000 bytes, mapped to 0x(ptrval)
[    0.404662] simple-framebuffer 5fda8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[    0.414320] Console: switching to colour frame buffer device 128x37
[    0.423240] simple-framebuffer 5fda8000.framebuffer: fb0: simplefb registered!
[    0.430994] NET: Registered protocol family 2
[    0.431577] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.431606] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.431653] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.431716] TCP: Hash tables configured (established 4096 bind 4096)
[    0.431840] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.431880] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.432068] NET: Registered protocol family 1
[    0.432720] RPC: Registered named UNIX socket transport module.
[    0.432732] RPC: Registered udp transport module.
[    0.432739] RPC: Registered tcp transport module.
[    0.432745] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.434844] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.442277] NFS: Registering the id_resolver key type
[    0.442328] Key type id_resolver registered
[    0.442336] Key type id_legacy registered
[    0.442436] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.442448] io scheduler mq-deadline registered
[    0.442456] io scheduler kyber registered
[    0.445018] sun8i-a23-r-pinctrl 1f02c00.pinctrl: Reset controller missing
[    0.447978] sun8i-a33-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.502771] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.504798][color=#FF0000]sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator[/color] 
[    0.505754] printk: console [ttyS0] disabled
[    0.525975] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 35, base_baud = 1500000) is a U6_16550A
[    1.166282] printk: console [ttyS0] enabled
[    1.172282][color=#FF0000] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator[/color]
[    1.187432] libphy: Fixed MDIO Bus: probed
[    1.191883] CAN device driver interface
[    1.196546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.203067] ehci-platform: EHCI generic platform driver
[    1.208584] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.214215] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.222327] ehci-platform 1c1a000.usb: irq 28, io mem 0x01c1a000
[    1.253873] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.260227] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.05
[    1.268513] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.275743] usb usb1: Product: EHCI Host Controller
[    1.280616] usb usb1: Manufacturer: Linux 5.5.5 ehci_hcd
[    1.285937] usb usb1: SerialNumber: 1c1a000.usb
[    1.291049] hub 1-0:1.0: USB hub found
[    1.294856] hub 1-0:1.0: 1 port detected
[    1.299334] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.305551] ohci-platform: OHCI generic platform driver
[    1.311002] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.317651] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.325617] ohci-platform 1c1a400.usb: irq 29, io mem 0x01c1a400
[    1.398051] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.05
[    1.406410] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.413625] usb usb2: Product: Generic Platform OHCI controller
[    1.419556] usb usb2: Manufacturer: Linux 5.5.5 ohci_hcd
[    1.424876] usb usb2: SerialNumber: 1c1a400.usb
[    1.429922] hub 2-0:1.0: USB hub found
[    1.433705] hub 2-0:1.0: 1 port detected
[    1.438469] [color=#FF0000]usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator[/color]
[    1.451440] sun6i-rtc 1f00000.rtc: registered as rtc0
[    1.456565] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.461309] i2c /dev entries driver
[    1.466081] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.474644] [color=#FF0000]sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator[/color]
[    1.484994] [color=#FF0000]sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator[/color]
[    1.495718] sun4i-ss 1c15000.crypto-engine: Die ID 5
[    1.504061] usbcore: registered new interface driver usbhid
[    1.509637] usbhid: USB HID core driver
[    1.515979] NET: Registered protocol family 17
[    1.520446] can: controller area network core (rev 20170425 abi 9)
[    1.526762] NET: Registered protocol family 29
[    1.531211] can: raw protocol (rev 20170425)
[    1.535514] can: broadcast manager protocol (rev 20170425 t)
[    1.541184] can: netlink gateway (rev 20190810) max_hops=1
[    1.547145] Key type dns_resolver registered
[    1.551519] Registering SWP/SWPB emulation handler
[    1.569471] sun8i-a23-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    1.577260][color=#FF0000] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator[/color]
[    1.588597] [color=#FF0000]sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator[/color]
[    1.599399][color=#FF0000] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator[/color]
[    1.609693] [color=#FF0000]sun8i-a23-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator[/color]
[    1.619970] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[    1.626159] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP223 found
[    1.634756] input: axp20x-pek as /devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0
[    1.644971] axp20x-adc axp22x-adc: DMA mask not set
[    1.650531] axp20x-battery-power-supply axp20x-battery-power-supply: DMA mask not set

[    1.659159] dcdc1: supplied by regulator-dummy
[    1.663902] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.671114] dcdc2: supplied by regulator-dummy
[    1.676452] dcdc3: supplied by regulator-dummy
[    1.681209] dcdc4: supplied by regulator-dummy
[    1.685997] dcdc5: supplied by regulator-dummy
[    1.690726] dc1sw: supplied by vcc-3v0
[    1.694767] dc5ldo: supplied by vcc-dram
[    1.699027] aldo1: supplied by regulator-dummy
[    1.703777] aldo2: supplied by regulator-dummy
[    1.708582] aldo3: supplied by regulator-dummy
[    1.713349] eldo1: supplied by vcc-3v0
[    1.717411] eldo2: supplied by vcc-3v0
[    1.721414] eldo3: supplied by vcc-3v0
[    1.725835] dldo1: supplied by regulator-dummy
[    1.730315] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[    1.738517] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.745755] usb 1-1: Product: USB 2.0 Hub
[    1.746010] dldo2: supplied by regulator-dummy
[    1.754930] dldo3: supplied by regulator-dummy
[    1.759797] hub 1-1:1.0: USB hub found
[    1.763666] hub 1-1:1.0: 4 ports detected
[    1.767928] dldo4: supplied by regulator-dummy
[    1.773093] rtc_ldo: supplied by regulator-dummy
[    1.778366] ldo_io0: supplied by regulator-dummy
[    1.783284] ldo_io1: supplied by regulator-dummy
[    1.788646] axp20x-ac-power-supply axp20x-ac-power-supply: DMA mask not set
[    1.796899] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[    1.802911] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.814135] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input1
[    1.825208] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.841547] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.870636] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.879010] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.933810] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[    1.941585] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.952951] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.963702] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T00:01:17 UTC (77)
[    1.972133] ALSA device list:
[    1.981612]   No soundcards found.
[    1.991906] Waiting for root device /dev/mmcblk1p2...
[    2.075302] mmc1: new DDR MMC card at address 0001
[    2.101784] mmcblk1: mmc1:0001 4FPD3R 3.64 GiB 
[    2.109463] mmcblk1boot0: mmc1:0001 4FPD3R partition 1 4.00 MiB
[    2.116093] mmcblk1boot1: mmc1:0001 4FPD3R partition 2 4.00 MiB
[    2.156630]  mmcblk1: p1 p2 p3
[    2.164688] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    2.188755] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.199668] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.203904] usb 1-1.3: new high-speed USB device number 3 using ehci-platform
[    2.213936] devtmpfs: mounted
[    2.218470] Freeing unused kernel memory: 1024K
[    2.234085] Run /sbin/init as init process
[    2.282684] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=8152, bcdDevice=20.00
[    2.291131] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.298475] usb 1-1.3: Product: USB 10/100 LAN
[    2.302978] usb 1-1.3: Manufacturer: Realtek
[    2.307301] usb 1-1.3: SerialNumber: 000000000000
[    2.313676] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[color=#FF0000][/color]
[    2.340065] random: fast init done
[    2.362746] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[    3.273287] mali: version magic '5.5.5 SMP mod_unload ARMv7 p2v8 ' should be '5.5.5 SMP preempt mod_unload ARMv7 p2v8 '
[    3.286368] mali: version magic '5.5.5 SMP mod_unload ARMv7 p2v8 ' should be '5.5.5 SMP preempt mod_unload ARMv7 p2v8 '
[    3.368777] random: dd: uninitialized urandom read (512 bytes read)
[    3.573541] random: dropbear: uninitialized urandom read (32 bytes read)
[   32.484310] vcc3v0: disabling
[   32.487397] vcc3v3: disabling
[   32.490623] dc1sw: disabling
[  426.432847] random: crng init done

#17 Re: 全志 SOC » 求助:A33主线uboot跑起来了,但是无法从 eMMC 启动 » 2020-03-12 10:36:10

达克罗德 说:

这个2取决于你的USB口,所以你可以试试其它的口

无论用哪个口 0 ~ 3 都是返回同样的错误:
UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0x748000
Controller uninitialized
g_dnl_register: failed!, error: -6
g_dnl_register failed

看上去是usb控制器没有初始化,但是使用 usb tree 命令,又可以列出两个控制器上的设备,应该是已经初始化了的
=> usb tree
USB device tree:
  1  Hub (480 Mb/s, 0mA)
  |  u-boot EHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 100mA)
    |   USB 2.0 Hub
    |
    +-3  Vendor specific (480 Mb/s, 100mA)
         Realtek USB 10/100 LAN 000000000000
       
  1  Hub (12 Mb/s, 0mA)
      U-Boot Root Hub

#18 Re: 全志 SOC » 自制F1C100S板不工作,请大家分析 » 2020-03-11 22:44:01

没有解决呢,研究中,你也遇到这个问题?

#19 Re: 全志 SOC » 全志A33 主线u-boot/Linux入坑记录 » 2020-03-11 21:42:29

这个帖子怎么不更新了,kernel rootfs 的内容怎么不更新了?

#20 Re: 全志 SOC » 求助:A33主线uboot跑起来了,但是无法从 eMMC 启动 » 2020-03-11 21:21:21

楼主你好,我买的根你一样的A33的板子,可是执行ums 2 mmc 1 的时候,出现

g_dnl_register: failed!, error: -6
g_dnl_register:failed

的错误,pc上也没有出现U盘符,我用的u-boot版本是2020.04, DTS 用的是Sinlunx_A33_defconfig,

是不是那里还需要特别设定一下,我插入的是板子上的otg USB插口

#21 Re: 全志 SOC » 自制F1C100S板不工作,请大家分析 » 2020-03-10 23:40:40

迪卡 说:

最好上你的核心部分原理图和PCB图,这样大家才能给你分析一下

原理图和pcb来了,core-core.pdfpcb.pdf

#22 Re: 全志 SOC » 自制F1C100S板不工作,请大家分析 » 2020-03-10 17:38:16

楼主解决vref是0V的问题了吗?我这边做的板子也是这个问题,程序可以烧写进SPIFLASH,但就是不运行,转口输出乱码。
HPVCC, TVVCC, VRA1, VRA2 都连接好的

#23 Re: 全志 SOC » 新人的S3核心板又更新了,这次加上了EMMC和WIFI » 2020-02-20 15:55:23

这款核心版进展怎么样了?有没有打算开卖?

页脚

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

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