页次: 1
1. 参考链接:
https://whycan.com/t_6986.html
git clone --branch v2021.07 https://github.com/u-boot/u-boot u-boot-v3x
如遇问题:Failed to connect to github.com port 443:
解决方案: git config --global --unset http.proxy
2. 参考链接:https://whycan.com/t_7248.html 小智V3X开发板-主要参考
补丁包下载: smallwitpi_lite_v3x_uboot_patch_for_202107.diff
并copy至v3x uboot目录下,
patch -p1 < smallwitpi_lite_v3x_uboot_patch_for_202107.diff
debug port选择的是U0-PB8和PB9
执行下面的配置:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make smallwitpi_lite_v3x_ddr3_debug_uart0_pb8_pb9_defconfig
如果在bashrc中配置好ARCH和CROSS_COMPILE,则只需要
make smallwitpi_lite_v3x_ddr3_debug_uart0_pb8_pb9_defconfig
然后make 或 make –j4,编译出uboot。
3. 参考链接:https://whycan.com/t_7269.html 将uboot烧录至SD卡:
将uboot,kernel和文件系统烧录到sd卡,参照论坛上的方法:
1) 删除TF卡所有分区
2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录
sudo dd if=u-boot-spl.bin of=/dev/sdX bs=1024 seek=8
或者使用SDCardWriter将uboot烧写至SD卡,
链接:https://github.com/malasy/SDCardWriter/releases
Uboot跑起来了,但是没有找到boot设备,需要对uboot make menuconfig,使能MMC SD SDIO card support。
赶在年末抓紧时间赶出了一版V3X的核心板,看好了它的LCD驱动、128MB内存,内置以太网phy,
参考网友开源的资料受益斐前,于是就自己也做了一版,核心板上只保留了电源、晶振、及需要的电阻电容配置,其他管脚全部引出了。
核心板采用双排2.0间距插针,尺寸4.7cm*4.7cm,还是比较mini的。
核心板调通后只需要设计更换不同的底板就OK了。
目前只是把核心板做了出来,赶在年前希望能完成PCB。底板还没想好放些什么,大体上就是:
1. lcd
2. lvds能否接hdmi?
3. 以太网
4. sd卡,sdio接口的wifi
5. usb
6. spi nand?希望能把这功能也调出来。
其他的欢迎补充。
MyV3XCore.pdf
外壳哪搞的啊?3D打印的吗?看上去很棒
感谢晕哥,送我的V3S路由器收到啦~还送了一块F1C600的小板,爽歪歪啦。
赶紧跟上大神的脚步学习起来,争取能早日用上这款神芯。
想到一个应用:就是把Flasher通过以太网与之相连,做远程、在线、离线的仿真调试神器。
旁边是MiniJLink Wifi,下面帮个tplink的小无线路由器可以实现无线调试,爽歪歪的调试神器。
----------------------------
V3s(荔枝派核心板) + 以太网 + AP6398(2.4/5G)双模路由器,本站(bbs.aw-ol.com)满100分免费赠送一台
在https://blog.csdn.net/louyangyang91/article/details/90905465 这看到一篇 RGB888转RGB565 抖动算法
试试这种抖动算法。
https://en.wikipedia.org/wiki/Ordered_dithering
============================================
/* Dither Tresshold for Red Channel */
static const BYTE dither_tresshold_r[64] = {
1, 7, 3, 5, 0, 8, 2, 6,
7, 1, 5, 3, 8, 0, 6, 2,
3, 5, 0, 8, 2, 6, 1, 7,
5, 3, 8, 0, 6, 2, 7, 1,
0, 8, 2, 6, 1, 7, 3, 5,
8, 0, 6, 2, 7, 1, 5, 3,
2, 6, 1, 7, 3, 5, 0, 8,
6, 2, 7, 1, 5, 3, 8, 0
};
/* Dither Tresshold for Green Channel */
static const BYTE dither_tresshold_g[64] = {
1, 3, 2, 2, 3, 1, 2, 2,
2, 2, 0, 4, 2, 2, 4, 0,
3, 1, 2, 2, 1, 3, 2, 2,
2, 2, 4, 0, 2, 2, 0, 4,
1, 3, 2, 2, 3, 1, 2, 2,
2, 2, 0, 4, 2, 2, 4, 0,
3, 1, 2, 2, 1, 3, 2, 2,
2, 2, 4, 0, 2, 2, 0, 4
};
/* Dither Tresshold for Blue Channel */
static const BYTE dither_tresshold_b[64] = {
5, 3, 8, 0, 6, 2, 7, 1,
3, 5, 0, 8, 2, 6, 1, 7,
8, 0, 6, 2, 7, 1, 5, 3,
0, 8, 2, 6, 1, 7, 3, 5,
6, 2, 7, 1, 5, 3, 8, 0,
2, 6, 1, 7, 3, 5, 0, 8,
7, 1, 5, 3, 8, 0, 6, 2,
1, 7, 3, 5, 0, 8, 2, 6
};
/* Get 16bit closest color */
BYTE closest_rb(BYTE c) {
return (c >> 3 << 3); /* red & blue */
}
BYTE closest_g(BYTE c) {
return (c >> 2 << 2); /* green */
}
/* RGB565 */
WORD RGB16BIT(BYTE r, BYTE g, BYTE b) {
return ((WORD)((r>>3)<<11)|((g>>2)<<5)|(b>>3));
}
/* Dithering by individual subpixel */
WORD dither_xy(
int x,
int y,
BYTE r,
BYTE g,
BYTE b
){
/* Get Tresshold Index */
BYTE tresshold_id = ((y & 7) << 3) + (x & 7);
r = closest_rb(
MIN(r + dither_tresshold_r[tresshold_id], 0xff)
);
g = closest_g(
MIN(g + dither_tresshold_g[tresshold_id], 0xff)
);
b = closest_rb(
MIN(b + dither_tresshold_b[tresshold_id], 0xff)
);
return RGB16BIT(r, g, b);
}
/* Dithering Pixel from 32/24bit RGB
*
* GetR, GetG, GetB -> Function to get individual color in pixel
*
*/
WORD dither_color_xy(int x, int y, DWORD col) {
return dither_xy(x, y, GetR(col), GetG(col), GetB(col));
}
/* EXAMPLES */
void ExampleDither1(WORD * dest, DWORD * src, int width, int height){
int x, y;
for (y=0; y<height; y++){
for (x=0; x<width; x++){
int pos = y * width + x;
dest[pos] = dither_color_xy(x,y,src[pos]);
}
}
}
void ExampleDither2(WORD * dest, BYTE * src, int width, int height){
int x, y;
for (y=0; y<height; y++){
for (x=0; x<width; x++){
int pos = y * width + x;
dest[pos] = dither_xy(x,y,src[pos*3],src[pos*3+1],src[pos*3+2]);
}
}
}
楼主可试试看
焊接完成,烧录系统,正常运行
https://whycan.com/files/members/2487/13.png
好牛!
能分享下pcb吗?直接去打样,jp可以免费做4层的~~~
olili 说:mango 说:邮票孔版本,明天上班就去打板板
https://whycan.com/files/members/383/ssd202d-2021-01-03.png你们这个核心板好像和启明的有点像额,出来了吗,什么配置什么价,准备搞几块来吃灰:)
哦,比他们的小了一大圈。价格应该保持极高性价比,放心吧。
txf211 说:请问楼主,板子大概啥时候能买到?
春节前出demo板,春节后量产。
春节前量产多好啊,春节有时间可以买来在家玩玩。
春节前没买的,春节后也就有钱了 可以买了。
V10的硬件,boot里把v10的字符串改成v11,然后就会升v11的固件了。
见
https://www.cnblogs.com/emwork/p/11297416.html
其实之前求高速USB就是在考虑做调试器,以后可以试试。
刚想起来上次找最便宜的高速USB的MCU的原来是您啊,我也是看了您的那个帖子才做了个505尝试了下
然后就掉坑里了~~~
顺手记录了下505的调试过程。
https://kmcu.gitee.io/2020/02/21/NUC505/
FX3U的源代码.rar
我只是个搬运工~~~
./tools/mkimage: Can't map u-boot.img: Invalid argument Makefile:1021: recipe for target 'u-boot.img' failed make: *** [u-boot.img] Error 1 make: *** Waiting for unfinished jobs.... CC spl/arch/arm/cpu/arm926ejs/cpu.o CC spl/arch/arm/mach-sunxi/board.o CC spl/arch/arm/cpu/arm926ejs/cache.o CC spl/arch/arm/mach-sunxi/clock.o CC spl/arch/arm/cpu/arm926ejs/sunxi/timer.o CC spl/arch/arm/mach-sunxi/cpu_info.o AS spl/arch/arm/cpu/arm926ejs/sunxi/lowlevel_init.o AS spl/arch/arm/cpu/arm926ejs/sunxi/fel_utils.o LD spl/arch/arm/cpu/arm926ejs/sunxi/built-in.o CC spl/arch/arm/mach-sunxi/dram_helpers.o AS spl/arch/arm/cpu/arm926ejs/start.o LD spl/arch/arm/cpu/arm926ejs/built-in.o LD spl/arch/arm/cpu/built-in.o AS spl/arch/arm/lib/vectors.o AS spl/arch/arm/lib/crt0.o CC spl/arch/arm/mach-sunxi/pinmux.o AS spl/arch/arm/lib/setjmp.o CC spl/arch/arm/lib/spl.o CC spl/arch/arm/lib/zimage.o CC spl/arch/arm/mach-sunxi/usb_phy.o CC spl/arch/arm/lib/bootm-fdt.o CC spl/arch/arm/mach-sunxi/clock_sun6i.o AS spl/arch/arm/lib/memset.o AS spl/arch/arm/lib/memcpy.o CC spl/arch/arm/lib/sections.o CC spl/arch/arm/lib/stack.o CC spl/arch/arm/mach-sunxi/dram_suniv.o CC spl/arch/arm/lib/interrupts.o LD spl/arch/arm/mach-sunxi/built-in.o CC spl/arch/arm/lib/reset.o CC spl/arch/arm/lib/cache.o CC spl/board/sunxi/board.o CC spl/arch/arm/lib/cache-cp15.o CC spl/arch/arm/lib/psci-dt.o LD spl/board/sunxi/built-in.o CC spl/common/spl/spl.o AS spl/arch/arm/lib/ashldi3.o AS spl/arch/arm/lib/ashrdi3.o CC spl/arch/arm/lib/div0.o AS spl/arch/arm/lib/div64.o AS spl/arch/arm/lib/lib1funcs.o AS spl/arch/arm/lib/lshrdi3.o AS spl/arch/arm/lib/muldi3.o AS spl/arch/arm/lib/uldivmod.o CC spl/common/spl/spl_mmc.o CC spl/arch/arm/lib/eabi_compat.o AS spl/arch/arm/lib/crt0_arm_efi.o CC spl/arch/arm/lib/reloc_arm_efi.o LD spl/common/spl/built-in.o CC spl/common/init/board_init.o LD spl/arch/arm/lib/built-in.o AR spl/arch/arm/lib/lib.a CC spl/common/console.o LD spl/common/init/built-in.o CC spl/common/dlmalloc.o CC spl/common/malloc_simple.o CC spl/common/image.o CC spl/cmd/nvedit.o LD spl/cmd/built-in.o CC spl/common/memsize.o CC spl/env/common.o CC spl/common/stdio.o CC spl/env/env.o CC spl/common/cli.o LD spl/env/built-in.o CC spl/common/command.o CC spl/common/s_record.o CC spl/common/xyzModem.o CC spl/lib/hashtable.o LD spl/common/built-in.o CC spl/disk/part.o CC spl/lib/errno.o CC spl/lib/display_options.o CC spl/disk/part_dos.o CC spl/lib/crc32.o CC spl/disk/part_iso.o CC spl/lib/ctype.o CC spl/lib/div64.o CC spl/disk/part_efi.o CC spl/lib/hang.o CC spl/lib/linux_compat.o CC spl/lib/linux_string.o LD spl/disk/built-in.o CC spl/lib/membuff.o CC spl/lib/string.o CC spl/lib/tables_csum.o CC spl/drivers/block/blk_legacy.o CC spl/lib/time.o LD spl/drivers/block/built-in.o CC spl/drivers/gpio/sunxi_gpio.o CC spl/lib/uuid.o LD spl/drivers/gpio/built-in.o CC spl/drivers/mmc/mmc.o CC spl/lib/rand.o CC spl/lib/tiny-printf.o CC spl/lib/panic.o CC spl/drivers/mmc/mmc_legacy.o CC spl/lib/strto.o CC spl/drivers/mmc/sunxi_mmc.o LD spl/lib/built-in.o LD spl/dts/built-in.o CC spl/fs/fs_internal.o LD spl/drivers/mmc/built-in.o LD spl/drivers/power/built-in.o LD spl/fs/built-in.o LD spl/drivers/power/pmic/built-in.o LDS spl/u-boot-spl.lds LD spl/drivers/power/regulator/built-in.o CC spl/drivers/serial/serial.o CC spl/drivers/serial/serial_ns16550.o CC spl/drivers/serial/ns16550.o LD spl/drivers/serial/built-in.o LD spl/drivers/built-in.o LD spl/u-boot-spl OBJCOPY spl/u-boot-spl-nodtb.bin COPY spl/u-boot-spl.bin MKSUNXI spl/sunxi-spl.bin make: *** wait: No child processes. Stop.
我编的TF卡版本的,mkimage报错,谁知道怎么回事
TF卡版本编译是使用make licheepi_nano_defconfig吗?
我编译没问题,但是搞进去没任何反应...
偶然在淘宝上看到有卖F1C100S源码的,好贵好贵...
https://item.taobao.com/item.htm?spm=2013.1.0.0.785a554cHTNiDC&id=589639202997&ns=1&abbucket=12#detail
https://item.taobao.com/item.htm?spm=a1z02.1.2016030118.d2016038.2e19782dSamYd1&id=596355535336&scm=1007.10157.81291.100200300000000&pvid=e79f8bdc-774d-4ad8-9524-e8d92ce37773
不知哪位大神有购买的,能来这儿共享下~~~
(不知这样好不...)
页次: 1