您尚未登录。

#2 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-07-06 21:44:17

还是白屏,我烧录能显示的那个镜像,示波器在TE脚上测到了60Hz的信号。开机logo看起来在uboot阶段,我编译的是一直没显示,uboot里没找到显示相关代码。

#3 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-07-05 22:14:21

看起来是这样改了,明天试下。
static irqreturn_t lcdc_irq_handler(int irq, void *arg)
{
  // if((suniv_variant == 1) || (suniv_variant == 2)){
  //   flip_lcd(arg);
  // }
  flip_lcd(arg);
  suniv_clrbits(iomm.lcdc + TCON_INT_REG0, (1 << 15));
  return IRQ_HANDLED;
}

#4 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-07-05 21:03:16

1.png
应该是没有了。我手欠改了按键引脚,所以要重新编译。上面图片的最下方有原理图PCB的文件,KICAD5.0的。原理图我转PDF了。Printing 打印原理图.pdf

#5 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-07-05 09:01:54

板子丑,要不是想验证下,PCB回来差点直接丢了。1.jpg
用GitHub镜像启动2.jpg
用我编译的镜像3.jpg
启动log

F1C200S SPL Loader
DRAM:156 MHz, 64 MB
Boot: MMC1
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-vegan (wj@debian) (gcc version 7.3.0 (Buildroot 2018.02.9)) #70 Mon Jul 4 18:49:51 HKT 2022
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: allwinner suniv handheld
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: rootwait root=/dev/mmcblk0p1 ro fstype=vfat init=/mininit -- pocketgo
[    0.000000] suniv model: pocketgo
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 61612K/65536K available (2296K kernel code, 103K rwdata, 544K rodata, 112K init, 188K bss, 3924K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0246600   (2298 kB)
[    0.000000]       .init : 0xc02d0000 - 0xc02ec000   ( 112 kB)
[    0.000000]       .data : 0xc02ec000 - 0xc0305d00   ( 104 kB)
[    0.000000]        .bss : 0xc0307ce0 - 0xc0336f9c   ( 189 kB)
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty0] enabled
[    0.070000] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] CPU: Testing write buffer coherency: ok
[    0.070000] Setting up static identity map for 0x80008400 - 0x8000843c
[    0.070000] devtmpfs: initialized
[    0.070000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.080000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.080000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.090000] SCSI subsystem initialized
[    0.090000] Advanced Linux Sound Architecture Driver Initialized.
[    0.090000] clocksource: Switched to clocksource timer
[    0.120000] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.120000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.120000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.120000] io scheduler noop registered
[    0.120000] io scheduler deadline registered
[    0.120000] io scheduler cfq registered (default)
[    0.120000] io scheduler mq-deadline registered
[    0.120000] io scheduler kyber registered
[    0.130000] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.130000] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.170000] Console: switching to colour frame buffer device 40x30
[    0.180000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.200000] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 23, base_baud = 6250000) is a 16550A
[    0.500000] console [ttyS1] enabled
[    0.510000] loop: module loaded
[    0.510000] SCSI Media Changer driver v0.25
[    0.520000] input: suniv-keypad as /devices/virtual/input/input0
[    0.530000] set pocketgo keypad handler
[    0.540000] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.610000] sunxi-mmc 1c0f000.mmc: base:0xc48f7000 irq:18
[    0.620000] suniv audio driver soc:codec@1c22000: soc:codec@1c22000 <-> soc:codec@1c22000 mapping ok
[    0.640000] ALSA device list:
[    0.640000]   #0: suniv audio card
[    0.650000] Waiting for root device /dev/mmcblk0p1...
[    0.700000] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.710000] mmc0: new SDHC card at address 0001
[    0.720000] mmcblk0: mmc0:0001 SD8GB 7.28 GiB
[    0.730000]  mmcblk0: p1 p2
[    0.770000] VFS: Mounted root (vfat filesystem) readonly on device 179:1.
[    0.780000] devtmpfs: mounted
[    0.790000] Freeing unused kernel memory: 112K
[    0.800000] This architecture does not have kernel memory protection.
[    1.570000] FAT-fs (mmcblk0p2): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    3.270000] Adding 262140k swap on /mnt/.swap.img.  Priority:-2 extents:1 across:262140k SS

Welcome to Miyoo
miyoo login: root
Jun 25 16:33:02 login[31]: root login on 'console'
# top

Mem: 18156K used, 43568K free, 4K shrd, 2780K buff, 9524K cached
CPU:   7% usr   7% sys   0% nic  84% idle   0% io   0% irq   0% sirq
Load average: 0.16 0.03 0.01 1/27 40
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
   40    31 root     R     1528   2%  15% top
   37    30 root     S     8024  13%   0% ./gmenu2x
   32    30 root     S     2292   4%   0% /usr/bin/daemon
   31     1 root     S     1536   2%   0% -sh
    1     0 root     S     1532   2%   0% init
   30     1 root     S     1532   2%   0% {main} /bin/sh /etc/main
    7     2 root     SW       0   0%   0% [ksoftirqd/0]
   19     2 root     SW       0   0%   0% [mmcqd/0]
   21     2 root     SW<      0   0%   0% [loop0]
   14     2 root     IW       0   0%   0% [kworker/0:1]
   20     2 root     IW<      0   0%   0% [kworker/0:1H]
    8     2 root     SW       0   0%   0% [kdevtmpfs]
    3     2 root     IW       0   0%   0% [kworker/0:0]
    2     0 root     SW       0   0%   0% [kthreadd]
   15     2 root     SW       0   0%   0% [irq/18-sunxi-mm]
    4     2 root     IW<      0   0%   0% [kworker/0:0H]
    5     2 root     IW       0   0%   0% [kworker/u2:0]
   18     2 root     IW       0   0%   0% [kworker/0:2]
    6     2 root     IW<      0   0%   0% [mm_percpu_wq]
   16     2 root     IW       0   0%   0% [kworker/u2:1]
#

附上源文件,KICAD的
F1C2.7z

#6 Re: 司徒开源 » 研究FC3000掌機的開源可行性 » 2022-07-04 19:35:04

@司徒 大神你好,我自己做了块板子。烧录pocketgo_od_jckl_no_roms.img这个镜像屏幕正常,我用源码编译出来的屏幕白屏,会是哪方面的原因呢?用github上的镜像串口不能输入,我编译的串口能输入。只编译了内核、源码。
ARCH=arm CROSS_COMPILE=arm-linux- make suniv_defconfig
./run.sh pocketgo
./run.sh /dev/sdb pocketgo

页脚

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

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