页次: 1
F1C600 唱戏机主板包邮50元, 报哇酷网网友45元包邮, 可以接7寸(800x480)显示屏
https://whycan.com/t_6616.html#p64192
(出处:哇酷开发者社区)
楼主这个买了两块,点了屏幕后一直吃灰,对f1c这么熟悉,能不能出个教程。
btw,这个按键搞出来了么? 看你咸鱼还有卖,怎么不搞一搞。
搞了个电视盒,40包邮,刷了下面的系统,电视家很流畅。
https://post.smzdm.com/p/anxxvrgp/
下载了下面的系统,桌面很美丽,集成了很多东西。可是网卡不能用,usb3也不行。
http://www.orangepi.cn/downloadresourcescn/orangepioneplus/2019-12-16/orangepionepluseeb876b6aed3cdb1c1c09.html
linux小白,不知道怎么玩了,其实就想装个python,摄像头,写点小程序玩玩。需要网卡要连上,usb可用。
楼主,我下载官方的porting
https://github.com/lvgl/lv_port_linux_frame_buffer
编译完成,包括你说的需要更改的我都检查了一遍,一直提示: applet not found.
请问是哪里的问题,是我的linux编译少东西了还是这里那个设置不对。
cp -f /usr/bin/fakeroot-tcp /home/br/buildroot-2019.02.3/output/host/usr/bin/fakeroot
这算是搞定了么?
rootfs.tar --null --xattrs-include='\''*'\'' --no-recursion -T - --numeric-owner)\n' >> /home/br/buildroot-2019.02.3/output/build/buildroot-fs/tar/fakeroot
chmod a+x /home/br/buildroot-2019.02.3/output/build/buildroot-fs/tar/fakeroot
PATH="/home/br/buildroot-2019.02.3/output/host/bin:/home/br/buildroot-2019.02.3/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" FAKEROOTDONTTRYCHOWN=1 /home/br/buildroot-2019.02.3/output/host/bin/fakeroot -- /home/br/buildroot-2019.02.3/output/build/buildroot-fs/tar/fakeroot
rootdir=/home/br/buildroot-2019.02.3/output/build/buildroot-fs/tar/target
table='/home/br/buildroot-2019.02.3/output/build/buildroot-fs/full_devices_table.txt'
完蛋了,论坛好像说过win10不支持SYSV IPC什么的。
https://whycan.com/t_1004.html
cp -f /usr/bin/fakeroot-tcp path-to-buildroot/output/host/usr/bin/fakeroot
收到,谢谢!出错了,千万不要全部重新来过。
chmod a+x /home/br/buildroot-2019.02.3/output/build/buildroot-fs/tar/fakeroot
PATH="/home/br/buildroot-2019.02.3/output/host/bin:/home/br/buildroot-2019.02.3/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" FAKEROOTDONTTRYCHOWN=1 /home/br/buildroot-2019.02.3/output/host/bin/fakeroot -- /home/br/buildroot-2019.02.3/output/build/buildroot-fs/tar/fakeroot
fakeroot, while creating message channels: Function not implemented
This may be due to a lack of SYSV IPC support.
fakeroot: error while starting the `faked' daemon.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
make: *** [fs/tar/tar.mk:32: /home/br/buildroot-2019.02.3/output/images/rootfs.tar] Error 1
已经在下载了,小二哥帮手说说怎么把BSP跟这个buildroot挂接上啊。指点一下够我搜半天。谢谢了!
gmyu 说:太久了,滚的我眼花,听说buildroot不支持多核。
--2021-04-08 14:11:32-- https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.47.tar.xz
Resolving cdn.kernel.org (cdn.kernel.org)... 151.101.77.176, 2a04:4e42:12::432
Connecting to cdn.kernel.org (cdn.kernel.org)|151.101.77.176|:443... connected.
HTTP request sent, awaiting response...这个可以用迅雷下载,下完后复制到 dl 目录下面,可能还有一级子目录,提示啥路径,就建啥文件夹。
太久了,滚的我眼花,听说buildroot不支持多核。
--2021-04-08 14:11:32-- https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.47.tar.xz
Resolving cdn.kernel.org (cdn.kernel.org)... 151.101.77.176, 2a04:4e42:12::432
Connecting to cdn.kernel.org (cdn.kernel.org)|151.101.77.176|:443... connected.
HTTP request sent, awaiting response...
win10下面ubuntu18默认su权限,不需要密码,20下面需要密码,
现在正在装buildroot19.02.03.祝福我吧,哈哈。
从零开始
====install GCC====
sudo apt-get install libncurses5-dev
sudo apt update
sudo apt install build-essential
======python3不是默认的,所以要更改========
sudo apt install python-is-python3 python-dev-is-python3
sudo apt-get install unzip
sudo make menuconfig
check 错误,说我的config没有用sudo,下面的方法没用===
set FORCE_UNSAFE_CONFIGURE=1 没有用管理员config
export FORCE_UNSAFE_CONFIGURE=1
然后使用 “chown” 命令更改一下文件(夹)的拥有者为当前用户
sudo chown -R $USER /home/br/
======================
用户权限不行,进su,su进不了管理员,sudo passwd重新设置,就ok了,奇怪。哈哈
sudo passwd重新设置一下密码,su进入管理员
漫长的等待===================。。。。。。
改了一下NVT_NAND_Fast_GIANTPLUS_QVGA.bin ,使用adc读GPIOG8,如果大于2V运行linux,否则作U盘用,可以copy linux内核到nand1-1.
非官方的板子,折腾。谢谢楼上各位了。
/* Detect USB */
//u32KpiReport = kpi_reada(KEY_ADC_CHANNEL) & MASS_STORAGE;
u32KpiReport = read_voltage(KEY_ADC_CHANNEL);
//u32KpiReport = kpi_reada(KPI_NONBLOCK) & MASS_STORAGE;
if(inp32(0xFF001804) == 0x6D617373){ //AutoWriter
outp32(0xFF001804, 0);
u32KpiReport = MASS_STORAGE;
}
sysprintf("KPI ADC Code = 0x%x\n", u32KpiReport);
//u32KpiReport=(0x10);
if(u32KpiReport < (0x99a)){//Demo board = "B"+"LEFT" Key 0x10 = 04e4,2=0x99a MASS_STORAGE
sysprintf("Enter USB\n");
sysDelay(5); /* Delay 50ms for USB VBUS stable */
if(udcIsAttached()){
//for mass's issue. sicSdClose();
sysprintf("Detect USB plug in\n");
mass(&g_sNDisk0, NULL, NULL, (INT)NULL, (INT)NULL, (INT)NULL, 0);
sysprintf("USB plug out\n");
outp32(REG_MISCR, inp32(REG_MISCR) | CPURST);
}
}
outp32(PHY_CTL, inp32(PHY_CTL) & (~Phy_suspend));
[GNAND] NAND flash chip detected, chip ID is 0xEF-0xF1 !
Total Disk Size 120,448 KB
KPI Key Code = 0x10
Enter USB
Detect USB plug in
<MSC>
N3292 MSC Library (20170606) 一直在这等着
改了一下NVT_NAND_Fast_GIANTPLUS_QVGA.bin,加了按键,本以为可以在PC上面出现nand1-1的,结果还是没有。
if(u32KpiReport==(MASS_STORAGE)){//Demo board = "B"+"LEFT" Key MASS_STORAGE
sysprintf("Enter USB\n");
sysDelay(5); /* Delay 50ms for USB VBUS stable */
if(udcIsAttached()){
//for mass's issue. sicSdClose();
sysprintf("Detect USB plug in\n");
mass(&g_sNDisk0, NULL, NULL, (INT)NULL, (INT)NULL, (INT)NULL, 0);
sysprintf("USB plug out\n");
outp32(REG_MISCR, inp32(REG_MISCR) | CPURST);
}
}
outp32(PHY_CTL, inp32(PHY_CTL) & (~Phy_suspend));
\0\0
Initial RTC .Fail - Timeout
DRAM Init..1f2p
SD Port 0 Booting Fail - No/Unknown Device
NAND CS0 Booting 2K-Page(4) BCH T4 PPB 64
Write - 0xB0003010 = 0x00000006
Write - 0xB0000204 = 0xFFFFFFFF
Write - 0xB0000208 = 0xFFFFFFFF
Write - 0xB0003008 = 0x0000805A
Write - 0xB0003028 = 0x2AFF3B4A
Write - 0xB0003004 = 0x00000021
Delay 256 us
Write - 0xB0003004 = 0x00000023
Write - 0xB0003004 = 0x00000027
Delay 256 us
Write - 0xB000301C = 0x00002402
Delay 256 us
Write - 0xB0003018 = 0x00000532
Delay 256 us
Write - 0xB0003004 = 0x00000027
Delay 256 us
Write - 0xB0003004 = 0x0000002B
Delay 256 us
Write - 0xB0003004 = 0x0000002B
Delay 256 us
Write - 0xB0003018 = 0x00000432
Delay 256 us
Write - 0xB000301C = 0x00002782
Delay 256 us
Write - 0xB000301C = 0x00002402
Delay 256 us
Write - 0xB0003004 = 0x00000020
Delay 256 us
Write - 0xB0003054 = 0x00000013
Delay 4096 us
Write - 0xB0003054 = 0x0000001E
Delay 20480 us
DRAM CMD0
Delay 4096 us
DRAM CMD2
DRAM CMD2
Write - 0xB0003054 = 0x0000001A
Delay 8192 us
Write - 0xB0000208 = 0x00008354
Write - 0xB0000204 = 0x00E5011F
Success
Execute Address 0x00900000
N9H26 Nand Boot Loader entry (20191218_Logo).
MCLK = 180,000,000
System clock = 240,000,000Hz
DRAM clock = 360,000,000Hz
REG_SDTIME = 0x2ABF394A
Enable RTC power off feature to 0 seconds.
Get image information from block 0x0 ..
Load file length 261,120, execute address 0x500000
Load file length 290,324, execute address 0x800000
Nand Boot Loader exit. Jump to execute address 0x800000 ...
NVT Loader Start
PWRON = 0x10
NVT Loader: g_ibr_boot_sd_port = 0
N3292 UDC Library (20200327)
[GNAND] GNAND Library Version: V1.02.5
Initial NAND NonOS Driver (20181029) for NAND port 0
NAND: Found SLC NAND, ID [EF][F1][00][95][00], page size 2,048, BCH T8
uIBRAreaSize = 4 blocks
[GNAND] NAND flash chip detected, chip ID is 0xEF-0xF1 !
Total Disk Size 122,112 KB
KPI Key Code = 0x0
Cannot find conprog.bin in NAND device.(err=0xFFFF8220)
systen exit
现在执行完上面的123,找不到conprog.bin, 我把他烧录到data,exc,romfs都试过,不行。
昨晚再看了一下新塘的文档,这个真是怪异。应该是我的烧录有问题。正常的顺序是。
1. system:N9H26_NANDLoader_240MHz_Fast_Logo210406.bin
2. logo:地址 0x500000
3. NVLoader: 0x800000 NVT_NAND_Fast_GIANTPLUS_QVGA.bin 这个昨天我没有烧录,但是一样Linux引导了
4. conprog.bin, 这个文件说在0x900000,我不知道怎么烧录。网上说插上U盘就有两个盘了,直接copy到NAND1-1,可是如果我 只烧录了123,并没有U盘出现在PC。
希望大神指点。
Serj 说:sjshe3326 说:我使用的是N32905,926应该也是类似的。在固件包中有一个SDLoader的工程。编译这个SDLoader 就是SD启动的文件。
将编译好的SDLoader.bin文件用TurboWriter工具写在SD卡的sector0中。然后就可以用SD卡启动了,会加载用户代码执行。I have not 固件包中.
I saw only some documentation on nuvoton site, and i dont know where I can download flash packet.你可以在 https://gitee.com/OpenNuvoton 中找到你需要的BSP。
如果不使用linux系统,可以编译 https://gitee.com/OpenNuvoton/N32926_NonOS_BSP/tree/master/Loader/SDLoader 的工程,
生成SDLoader.bin用于SD启动。
如果使用Linux 也有对应的工具可能是uboot。
loader就是裸奔non-os里面编译的吧,linux的loader和NON-os的不一样么?
linux在N32926遇到个问题GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。
希望论坛的高手指点。谢谢!
NAND: nand_init!!!!!
W55FA93 NAND driver (20131023) has been initialized successfully!
scsi0 : Nuvoton W55FA93 On Board NAND DRIVER!
W55FA93 DEVMEM driver has been initialized successfully!
[GNAND] GNAND Library Version: V1.02.3
fmiSMCheckBootHeader 1
Nand0: uLibStartBlock=34
[GNAND] NAND flash chip detected, chip ID is 0xad-0xda !
GNAND init failed !!!!!!!!
scsi 0:0:1:0: Direct-Access NUVOTON GNAND DRIVER 2.00 PQ: 0 ANSI: 0
sd 0:0:1:0: [sda] Unit Not Ready
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] READ CAPACITY failed
sd 0:0:1:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:1:0: [sda] Asking for cache data failed
sd 0:0:1:0: [sda] Assuming drive cache: write through
sd 0:0:1:0: [sda] Unit Not Ready
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] READ CAPACITY failed
sd 0:0:1:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:1:0: [sda] Asking for cache data failed
sd 0:0:1:0: [sda] Assuming drive cache: write through
sd 0:0:1:0: [sda] Attached SCSI removable disk
系统启动时,在这里就死了,请问大神们怎么回事呢?
https://github.com/lvgl/lv_sim_codeblocks_win/tree/dev-7.0
https://github.com/lvgl/lv_sim_codeblocks_win
官方的codeblocks代码
怎么都搞不过,通过的朋友出来指导一下。
||=== Build: Release in LittlevGL (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lSDL2main|
ld.exe||cannot find -lSDL2|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
这位大佬把emwin的nuvoton限制给破解了: https://whycan.cn/t_1296.html#p42488
请问N9Hxx不是在github都有官方的源码么?他们已经得到授权了啊,只是N329xx系列没有demo。我现在编译成功却无显示。
这才明白我在emWin中提的一个问题。 但是还是不能把N9H26的emWin用在N32926。等高手解惑。
========================================
我在N32926上面跑N9H26的 emWin demo,编译通过,只是运行一片黑。
GUIDRV_LIN_16 和 GIANTPLUS_GPM1006D 都和我的板子一样,如果放data到u8FrameBuf,是可以显示图片的。
就是指针要或800000000不明白,但是我注释掉也一样的不行。
u8FrameBufPtr = (UINT8 *)((UINT32)u8FrameBuf );//| 0x80000000);
这么好的论坛,活跃度不高,百度搜索也好像找不到.
看到论坛晕哥德回复,真是个热心人.
想问一下,大家手上的SDK和这里的有什么区别,这个更新很快哦.
https://github.com/OpenNuvoton
页次: 1