c-sky / forum

C-SKY Linux 论坛,更多资料请访问 c-sky.github.io
https://c-sky.github.io
32 stars 4 forks source link

快速编译第三步出现问题 #88

Open ccbirds opened 4 years ago

ccbirds commented 4 years ago

执行命令:make csky_gx6605s_defconfig 报错: make -C /home/czq/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/czq/buildroot/ make[1]: Entering directory '/home/czq/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a' Makefile:926: Please configure Buildroot first (e.g. "make menuconfig"). Stop. make[1]: Leaving directory '/home/czq/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a' Makefile:52: recipe for target 'csky_gx6605s_defconfig' failed make: [csky_gx6605s_defconfig] Error 2

请问这样应该怎么解决?

Accellular commented 4 years ago

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题

然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2

从错误信息看,似乎是要make menuconfig,明天试试看。

PencilCore commented 4 years ago

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题

然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2

从错误信息看,似乎是要make menuconfig,明天试试看。

哎,你们用这块板子主要是用来干嘛的呢,可以分享下吗qwq

guoren83 commented 4 years ago

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题

然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2

从错误信息看,似乎是要make menuconfig,明天试试看。

make CONF=thead_610_compat_next_glibc_br_defconfig 相当于 mkdir thead_610_compat_next_glibc_br_defconfig; 准备 O=thead_610_compat_next_glibc_br_defconfig 编译环境; cd thead_610_compat_next_glibc_br_defconfig; make;

你的问题,应该是没有 cd thead_610_compat_next_glibc_br_defconfig,就 make 了

Accellular commented 4 years ago

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题 然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2 从错误信息看,似乎是要make menuconfig,明天试试看。

make CONF=thead_610_compat_next_glibc_br_defconfig 相当于 mkdir thead_610_compat_next_glibc_br_defconfig; 准备 O=thead_610_compat_next_glibc_br_defconfig 编译环境; cd thead_610_compat_next_glibc_br_defconfig; make;

你的问题,应该是没有 cd thead_610_compat_next_glibc_br_defconfig,就 make 了

果然,现在编译成功了。

Accellular commented 4 years ago

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题 然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2 从错误信息看,似乎是要make menuconfig,明天试试看。

哎,你们用这块板子主要是用来干嘛的呢,可以分享下吗qwq

就是折腾,好玩~

Accellular commented 4 years ago

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题 然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2 从错误信息看,似乎是要make menuconfig,明天试试看。

make CONF=thead_610_compat_next_glibc_br_defconfig 相当于 mkdir thead_610_compat_next_glibc_br_defconfig; 准备 O=thead_610_compat_next_glibc_br_defconfig 编译环境; cd thead_610_compat_next_glibc_br_defconfig; make;

你的问题,应该是没有 cd thead_610_compat_next_glibc_br_defconfig,就 make 了

最近重新编译,发现会报这个错,不知道有没有救?: skeleton Extracting skeleton Patching skeleton Configuring skeleton Building skeleton Installing to target linux-headers custom Downloading --2020-08-19 14:29:26-- https://github.com/c-sky/csky-linux/archive/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:27 错误 404:Not Found。

--2020-08-19 14:29:27-- http://sources.buildroot.net/linux/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:28 错误 404:Not Found。

--2020-08-19 14:29:28-- http://sources.buildroot.net/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:29 错误 404:Not Found。

guoren83 commented 4 years ago

换一个配置试试

On Wed, Aug 19, 2020 at 2:43 PM Akiyama Akira notifications@github.com wrote:

我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题 然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: [all] Error 2 从错误信息看,似乎是要make menuconfig,明天试试看。

make CONF=thead_610_compat_next_glibc_br_defconfig 相当于 mkdir thead_610_compat_next_glibc_br_defconfig; 准备 O=thead_610_compat_next_glibc_br_defconfig 编译环境; cd thead_610_compat_next_glibc_br_defconfig; make;

你的问题,应该是没有 cd thead_610_compat_next_glibc_br_defconfig,就 make 了

最近重新编译,发现会报这个错,不知道有没有救?:

skeleton Extracting skeleton Patching skeleton Configuring skeleton Building skeleton Installing to target linux-headers custom Downloading --2020-08-19 14:29:26-- https://github.com/c-sky/csky-linux/archive/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:27 错误 404:Not Found。

--2020-08-19 14:29:27-- http://sources.buildroot.net/linux/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:28 错误 404:Not Found。

--2020-08-19 14:29:28-- http://sources.buildroot.net/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:29 错误 404:Not Found。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/c-sky/forum/issues/88#issuecomment-675884428, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETCFK7ZF3HIT3PKFD6HDWTSBNX7ZANCNFSM4KZDRLSA .

-- Best Regards Guo Ren

ML: https://lore.kernel.org/linux-csky/

Accellular commented 4 years ago

换一个配置试试 On Wed, Aug 19, 2020 at 2:43 PM Akiyama Akira @.> wrote: 我的情况还不一样: 先执行 make CONF=thead_610_compat_next_glibc_br_defconfig 跑了很久(澡都洗完了还没跑完)没问题 然后执行make 报错: make -C /home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/akira/code/test/buildroot/buildroot/ make[1]: 进入目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:926: Please configure Buildroot first (e.g. "make menuconfig")。 停止。 make[1]: 离开目录“/home/akira/code/test/buildroot/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a” Makefile:52: recipe for target 'all' failed make: *** [all] Error 2 从错误信息看,似乎是要make menuconfig,明天试试看。 make CONF=thead_610_compat_next_glibc_br_defconfig 相当于 mkdir thead_610_compat_next_glibc_br_defconfig; 准备 O=thead_610_compat_next_glibc_br_defconfig 编译环境; cd thead_610_compat_next_glibc_br_defconfig; make; 你的问题,应该是没有 cd thead_610_compat_next_glibc_br_defconfig,就 make 了 最近重新编译,发现会报这个错,不知道有没有救?: skeleton Extracting skeleton Patching skeleton Configuring skeleton Building skeleton Installing to target linux-headers custom Downloading --2020-08-19 14:29:26-- https://github.com/c-sky/csky-linux/archive/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:27 错误 404:Not Found。 --2020-08-19 14:29:27-- http://sources.buildroot.net/linux/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:28 错误 404:Not Found。 --2020-08-19 14:29:28-- http://sources.buildroot.net/.tar.gz 正在连接 192.168.1.251:9999... 已连接。 已发出 Proxy 请求,正在等待回应... 404 Not Found 2020-08-19 14:29:29 错误 404:Not Found。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#88 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETCFK7ZF3HIT3PKFD6HDWTSBNX7ZANCNFSM4KZDRLSA . -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/

换成 make CONF=thead_610_compat_4.9_glibc_br_defconfig 编译成功了~

Accellular commented 4 years ago

@guoren83

还有问题想请教一下你: 现在的情况是,用make CONF=thead_610_compat_4.9_glibc_br_defconfig 已经成功生成了uImage,gx6605s.dtb,rootfs.ext2,也查其他资料生成了usb.img,我生成的这个usb.img写到U盘后可以启动,因为USB串口正常显示了信息,但是串口最后并没有显示Linux console登录提示,也不响应输入,HDMI也没有任何显示,但是我用官网提供的usb.img,HDMI是可以正常显示Linux console的,也可以正常用键盘操作,请问这个情况应该办?

以下是串口输出的所有信息:

GxLoader v1.9 20140509

cpu family : CSKY chip model : gx6605s board type : 6605s memory size : 64 MB Flash type : w25q32 Flash size : 4 MB error: can't support 60HZ with PAL. warning: board-init not call function enable_dac, will open cvbs & ypbpr default. Hit any key to stop autoboot: 1

USB0: USB EHCI 1.00 scanning bus 0 for devices... EHCI timed out on TD - token=x 4 USB Device(s) found 1 Storage Device(s) found reading gx6605s.dtb get file gx6605s.dtb, size : 1555 USB0: USB EHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found 1 Storage Device(s) found reading uImage get file uImage, size : 3331308 uImage_load_kernel.

[ 0.000000] Linux version 4.9.56 (akira@erbuntu) (gcc version 6.3.0 (Buildroot 2019.08-git-gf2298cb-dirty) ) #1 Sat Aug 22 01:29:09 CST 2020 [ 0.000000] Phys. mem: 64MB [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat 905d0878, node_mem_map 93f80000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/sbin/init root=/dev/nfs rw nfsroot=192.168.101.200:/tmp/rootfs_nfs,v3,tcp,nolock ip=192.168.101.23 [ 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] Sorting ex_table... [ 0.000000] initrd not found or empty [ 0.000000] - disabling initrd [ 0.000000] Memory: 58692K/65536K available (3789K kernel code, 194K rwdata, 1876K rodata, 120K init, 265K bss, 6844K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000043] sched_clock: 32 bits at 27MHz, resolution 37ns, wraps every 79536431085ns [ 0.000148] clocksource: gx6605s: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns [ 0.000439] Console: colour dummy device 80x25 [ 0.000512] Calibrating delay loop... 382.46 BogoMIPS (lpj=764928) [ 0.028163] pid_max: default: 32768 minimum: 301 [ 0.028295] Security Framework initialized [ 0.028325] Yama: becoming mindful. [ 0.028469] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.028499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.030202] ASID allocator initialised with 256 entries [ 0.033402] devtmpfs: initialized [ 0.036000] evm: security.ima [ 0.036039] evm: security.capability [ 0.037388] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.037448] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.038514] NET: Registered protocol family 16 [ 0.041851] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.041894] DMA: vaddr: 0xc000e000 phy: 0x13880000, [ 0.065012] vgaarb: loaded [ 0.065695] SCSI subsystem initialized [ 0.066491] usbcore: registered new interface driver usbfs [ 0.066715] usbcore: registered new interface driver hub [ 0.066921] usbcore: registered new device driver usb [ 0.067189] Linux video capture interface: v2.00 [ 0.067340] pps_core: LinuxPPS API ver. 1 registered [ 0.067365] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.067444] PTP clock support registered [ 0.069857] clocksource: Switched to clocksource gx6605s [ 0.070182] VFS: Disk quotas dquot_6.6.0 [ 0.070332] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.108064] NET: Registered protocol family 2 [ 0.109638] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.109703] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.109738] TCP: Hash tables configured (established 1024 bind 1024) [ 0.110088] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.110140] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.110519] NET: Registered protocol family 1 [ 0.111753] RPC: Registered named UNIX socket transport module. [ 0.111796] RPC: Registered udp transport module. [ 0.111811] RPC: Registered tcp transport module. [ 0.111826] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.111853] PCI: CLS 0 bytes, default 16 [ 0.114961] audit: initializing netlink subsys (disabled) [ 0.115121] audit: type=2000 audit(0.111:1): initialized [ 0.115604] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 0.141625] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.142642] romfs: ROMFS MTD (C) 2007 Red Hat, Inc. [ 0.143012] fuse init (API version 7.26) [ 0.144338] 9p: Installing v9fs 9p2000 file system support [ 0.151657] Key type asymmetric registered [ 0.151701] Asymmetric key parser 'x509' registered [ 0.152282] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.152322] io scheduler noop registered [ 0.152339] io scheduler deadline registered (default) [ 0.152424] io scheduler cfq registered [ 0.153000] ipmi message handler version 39.2 [ 0.395131] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.399960] console [ttyS0] disabled [ 0.400152] 403000.serial: ttyS0 at MMIO 0x403000 (irq = 15, base_baud = 1843200) is a 16550A [ 0.844277] console [ttyS0] enabled [ 0.850496] [drm] Initialized [ 0.917514] brd: module loaded [ 0.941065] loop: module loaded [ 0.945562] libphy: Fixed MDIO Bus: probed [ 0.950372] usbcore: registered new interface driver rtl8150 [ 0.956402] usbcore: registered new interface driver r8152 [ 0.962029] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.968653] ehci-pci: EHCI PCI platform driver [ 0.973370] ehci-platform: EHCI generic platform driver [ 0.979033] ehci-platform 900000.ehci-hcd: EHCI Host Controller [ 0.985243] ehci-platform 900000.ehci-hcd: new USB bus registered, assigned bus number 1 [ 0.994051] ehci-platform 900000.ehci-hcd: irq 59, io mem 0x00900000 [ 1.013971] ehci-platform 900000.ehci-hcd: USB 2.0 started, EHCI 1.00 [ 1.023106] hub 1-0:1.0: USB hub found [ 1.027187] hub 1-0:1.0: 2 ports detected [ 1.032947] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.039353] ohci-pci: OHCI PCI platform driver [ 1.044380] usbcore: registered new interface driver usb-storage [ 1.051695] mousedev: PS/2 mouse device common for all mice [ 1.058583] usbcore: registered new interface driver uvcvideo [ 1.064488] USB Video Class driver (1.1.1) [ 1.068710] ledtrig-cpu: registered to indicate activity on CPUs [ 1.075277] usbcore: registered new interface driver usbhid [ 1.080999] usbhid: USB HID core driver [ 1.085631] NET: Registered protocol family 17 [ 1.090398] 9pnet: Installing 9P2000 support [ 1.099933] Key type trusted registered [ 1.108181] Key type encrypted registered [ 1.112364] ima: No TPM chip found, activating TPM-bypass! [ 1.118262] evm: HMAC attrs: 0x1 [ 1.357968] usb 1-2: new high-speed USB device number 2 using ehci-platform [ 1.421862] random: fast init done [ 1.514098] hub 1-2:1.0: USB hub found [ 1.518542] hub 1-2:1.0: 4 ports detected [ 1.813941] usb 1-2.1: new high-speed USB device number 3 using ehci-platform [ 1.933810] usb-storage 1-2.1:1.0: USB Mass Storage device detected [ 1.941323] scsi host0: usb-storage 1-2.1:1.0 [ 2.025944] usb 1-2.4: new high-speed USB device number 4 using ehci-platform [ 2.979885] scsi 0:0:0:0: Direct-Access 360 WiFi Flash Disk 1.00 PQ: 0 ANSI: 2 [ 2.992860] sd 0:0:0:0: [sda] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB) [ 3.002455] sd 0:0:0:0: [sda] Write Protect is off [ 3.007473] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 3.013779] sd 0:0:0:0: [sda] No Caching mode page found [ 3.019278] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 3.034538] sda: sda1 sda2 [ 3.045185] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 58.150017] random: crng init done [ 470.594230] VFS: Unable to mount root fs via NFS, trying floppy. [ 470.601488] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6 [ 470.608868] Please append a correct "root=" boot option; here are the available partitions: [ 470.617323] 0100 65536 ram0 [ 470.620980] (driver?) [ 470.623443] 0101 65536 ram1 [ 470.627091] (driver?) [ 470.629493] 0102 65536 ram2 [ 470.633141] (driver?) [ 470.635600] 0103 65536 ram3 [ 470.639250] (driver?) [ 470.641652] 0104 65536 ram4 [ 470.645300] (driver?) [ 470.647758] 0105 65536 ram5 [ 470.651406] (driver?) [ 470.653807] 0106 65536 ram6 [ 470.657462] (driver?) [ 470.659915] 0107 65536 ram7 [ 470.663565] (driver?) [ 470.666026] 0108 65536 ram8 [ 470.669619] (driver?) [ 470.672079] 0109 65536 ram9 [ 470.675729] (driver?) [ 470.678189] 010a 65536 ram10 [ 470.681927] (driver?) [ 470.684330] 010b 65536 ram11 [ 470.688064] (driver?) [ 470.690523] 010c 65536 ram12 [ 470.694259] (driver?) [ 470.696663] 010d 65536 ram13 [ 470.700398] (driver?) [ 470.702884] 010e 65536 ram14 [ 470.706623] (driver?) [ 470.709026] 010f 65536 ram15 [ 470.712762] (driver?) [ 470.715229] 0800 7834624 sda [ 470.718798] driver: sd [ 470.721285] 0801 8192 sda1 00000000-01[ 470.726063] [ 470.727596] 0802 524288 sda2 00000000-02[ 470.732372] [ 470.733959] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) [ 470.742258] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.56 #1 [ 470.748016] Call Trace: [<9001fc38>] walk_stackframe+0x0/0x98 [ 470.753937] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.759184] [<9001fd16>] show_stack+0x12/0x34 [ 470.763595] [<901caa5a>] dump_stack+0xa/0x24 [ 470.767891] [<90069b36>] panic+0x76/0x1a4 [ 470.771922] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.777170] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.782422] [<90001c0e>] mount_block_root+0x106/0x1f4 [ 470.787501] [<90001e6c>] mount_root+0xa0/0x100 [ 470.791969] [<90019b90>] nfs_root_parms+0x400/0x404 [ 470.796870] [<9001a098>] nfs_export_path+0x400/0x404 [ 470.801854] [<90019094>] initcall_levels+0x20/0x24 [ 470.806667] [<90001124>] do_early_param+0x98/0x9c [ 470.811417] [<9001d954>] initcall_clk_disable_unused7s+0x0/0x4 [ 470.817452] [<90019104>] saved_root_name+0x3c/0x40 [ 470.822264] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.827514] [<90001f86>] prepare_namespace+0xba/0x150 [ 470.832587] [<90019090>] initcall_levels+0x1c/0x24 [ 470.837400] [<90001894>] kernel_init_freeable+0xe0/0x190 [ 470.842735] [<90001124>] do_early_param+0x98/0x9c [ 470.847466] [<903c89b0>] rest_init+0x68/0x6c [ 470.851758] [<903c89b8>] kernel_init+0x4/0xbc [ 470.856150] [<9001eac2>] ret_from_kernel_thread+0x2/0x20 [ 470.861496] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Accellular commented 4 years ago

找到原因了,将gx6605s.dts.txt文件中: bootargs = "console=ttyS0,115200 rootwait init=/sbin/init root=/dev/nfs rw nfsroot=192.168.101.200:/tmp/rootfs_nfs,v3,tcp,nolock ip=192.168.101.23";

改成下面这样就能用串口进入console了: bootargs = "console=ttyS0,115200 init=/sbin/init root=/dev/sda2 rw rootwait";

那么问题又来了,如果想启用framebuffer,用HDMI输出,应该怎么设置呢?

guoren83 commented 4 years ago

厉害!

这是 fb 的 buildroot 仓库和配置 https://github.com/c-sky/buildroot/blob/master_backup/configs/csky_610_gx6605sfb_4.9_uclibc_br_defconfig

这是 fb driver https://github.com/c-sky/addons-linux/tree/master/addons/drivers/video/fbdev/nationalchip

On Sat, Aug 22, 2020 at 7:17 PM Akiyama Akira notifications@github.com wrote:

@guoren83 https://github.com/guoren83

还有问题想请教一下你: 现在的情况是,用make CONF=thead_610_compat_4.9_glibc_br_defconfig 已经成功生成了uImage,gx6605s.dtb,rootfs.ext2,也查其他资料生成了usb.img,我生成的这个usb.img写到U盘后可以启动,因为USB串口正常显示了信息,但是串口最后并没有显示Linux console登录提示,也不响应输入,HDMI也没有任何显示,但是我用官网提供的usb.img https://c-sky.github.io/docs/quick-run.html,HDMI是可以正常显示Linux console的,也可以正常用键盘操作,请问这个情况应该办?

以下是串口输出的所有信息:

GxLoader v1.9 20140509 cpu family : CSKY chip model : gx6605s board type : 6605s memory size : 64 MB Flash type : w25q32 Flash size : 4 MB error: can't support 60HZ with PAL. warning: board-init not call function enable_dac, will open cvbs & ypbpr default. Hit any key to stop autoboot: 1 USB0: USB EHCI 1.00 scanning bus 0 for devices... EHCI timed out on TD - token=x 4 USB Device(s) found 1 Storage Device(s) found reading gx6605s.dtb get file gx6605s.dtb, size : 1555 USB0: USB EHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found 1 Storage Device(s) found reading uImage get file uImage, size : 3331308 uImage_load_kernel. [ 0.000000] Linux version 4.9.56 (akira@erbuntu) (gcc version 6.3.0 (Buildroot 2019.08-git-gf2298cb-dirty) ) #1 https://github.com/c-sky/forum/issues/1 Sat Aug 22 01:29:09 CST 2020 [ 0.000000] Phys. mem: 64MB [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat 905d0878, node_mem_map 93f80000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/sbin/init root=/dev/nfs rw nfsroot=192.168.101.200:/tmp/rootfs_nfs,v3,tcp,nolock ip=192.168.101.23 [ 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] Sorting ex_table... [ 0.000000] initrd not found or empty [ 0.000000] - disabling initrd [ 0.000000] Memory: 58692K/65536K available (3789K kernel code, 194K rwdata, 1876K rodata, 120K init, 265K bss, 6844K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000043] sched_clock: 32 bits at 27MHz, resolution 37ns, wraps every 79536431085ns [ 0.000148] clocksource: gx6605s: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns [ 0.000439] Console: colour dummy device 80x25 [ 0.000512] Calibrating delay loop... 382.46 BogoMIPS (lpj=764928) [ 0.028163] pid_max: default: 32768 minimum: 301 [ 0.028295] Security Framework initialized [ 0.028325] Yama: becoming mindful. [ 0.028469] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.028499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.030202] ASID allocator initialised with 256 entries [ 0.033402] devtmpfs: initialized [ 0.036000] evm: security.ima [ 0.036039] evm: security.capability [ 0.037388] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.037448] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.038514] NET: Registered protocol family 16 [ 0.041851] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.041894] DMA: vaddr: 0xc000e000 phy: 0x13880000, [ 0.065012] vgaarb: loaded [ 0.065695] SCSI subsystem initialized [ 0.066491] usbcore: registered new interface driver usbfs [ 0.066715] usbcore: registered new interface driver hub [ 0.066921] usbcore: registered new device driver usb [ 0.067189] Linux video capture interface: v2.00 [ 0.067340] pps_core: LinuxPPS API ver. 1 registered [ 0.067365] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.067444] PTP clock support registered [ 0.069857] clocksource: Switched to clocksource gx6605s [ 0.070182] VFS: Disk quotas dquot_6.6.0 [ 0.070332] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.108064] NET: Registered protocol family 2 [ 0.109638] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.109703] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.109738] TCP: Hash tables configured (established 1024 bind 1024) [ 0.110088] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.110140] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.110519] NET: Registered protocol family 1 [ 0.111753] RPC: Registered named UNIX socket transport module. [ 0.111796] RPC: Registered udp transport module. [ 0.111811] RPC: Registered tcp transport module. [ 0.111826] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.111853] PCI: CLS 0 bytes, default 16 [ 0.114961] audit: initializing netlink subsys (disabled) [ 0.115121] audit: type=2000 audit(0.111:1): initialized [ 0.115604] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 0.141625] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.142642] romfs: ROMFS MTD (C) 2007 Red Hat, Inc. [ 0.143012] fuse init (API version 7.26) [ 0.144338] 9p: Installing v9fs 9p2000 file system support [ 0.151657] Key type asymmetric registered [ 0.151701] Asymmetric key parser 'x509' registered [ 0.152282] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.152322] io scheduler noop registered [ 0.152339] io scheduler deadline registered (default) [ 0.152424] io scheduler cfq registered [ 0.153000] ipmi message handler version 39.2 [ 0.395131] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.399960] console [ttyS0] disabled [ 0.400152] 403000.serial: ttyS0 at MMIO 0x403000 (irq = 15, base_baud = 1843200) is a 16550A [ 0.844277] console [ttyS0] enabled [ 0.850496] [drm] Initialized [ 0.917514] brd: module loaded [ 0.941065] loop: module loaded [ 0.945562] libphy: Fixed MDIO Bus: probed [ 0.950372] usbcore: registered new interface driver rtl8150 [ 0.956402] usbcore: registered new interface driver r8152 [ 0.962029] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.968653] ehci-pci: EHCI PCI platform driver [ 0.973370] ehci-platform: EHCI generic platform driver [ 0.979033] ehci-platform 900000.ehci-hcd: EHCI Host Controller [ 0.985243] ehci-platform 900000.ehci-hcd: new USB bus registered, assigned bus number 1 [ 0.994051] ehci-platform 900000.ehci-hcd: irq 59, io mem 0x00900000 [ 1.013971] ehci-platform 900000.ehci-hcd: USB 2.0 started, EHCI 1.00 [ 1.023106] hub 1-0:1.0: USB hub found [ 1.027187] hub 1-0:1.0: 2 ports detected [ 1.032947] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.039353] ohci-pci: OHCI PCI platform driver [ 1.044380] usbcore: registered new interface driver usb-storage [ 1.051695] mousedev: PS/2 mouse device common for all mice [ 1.058583] usbcore: registered new interface driver uvcvideo [ 1.064488] USB Video Class driver (1.1.1) [ 1.068710] ledtrig-cpu: registered to indicate activity on CPUs [ 1.075277] usbcore: registered new interface driver usbhid [ 1.080999] usbhid: USB HID core driver [ 1.085631] NET: Registered protocol family 17 [ 1.090398] 9pnet: Installing 9P2000 support [ 1.099933] Key type trusted registered [ 1.108181] Key type encrypted registered [ 1.112364] ima: No TPM chip found, activating TPM-bypass! [ 1.118262] evm: HMAC attrs: 0x1 [ 1.357968] usb 1-2: new high-speed USB device number 2 using ehci-platform [ 1.421862] random: fast init done [ 1.514098] hub 1-2:1.0: USB hub found [ 1.518542] hub 1-2:1.0: 4 ports detected [ 1.813941] usb 1-2.1: new high-speed USB device number 3 using ehci-platform [ 1.933810] usb-storage 1-2.1:1.0: USB Mass Storage device detected [ 1.941323] scsi host0: usb-storage 1-2.1:1.0 [ 2.025944] usb 1-2.4: new high-speed USB device number 4 using ehci-platform [ 2.979885] scsi 0:0:0:0: Direct-Access 360 WiFi Flash Disk 1.00 PQ: 0 ANSI: 2 [ 2.992860] sd 0:0:0:0: [sda] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB) [ 3.002455] sd 0:0:0:0: [sda] Write Protect is off [ 3.007473] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 3.013779] sd 0:0:0:0: [sda] No Caching mode page found [ 3.019278] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 3.034538] sda: sda1 sda2 [ 3.045185] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 58.150017] random: crng init done [ 470.594230] VFS: Unable to mount root fs via NFS, trying floppy. [ 470.601488] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6 [ 470.608868] Please append a correct "root=" boot option; here are the available partitions: [ 470.617323] 0100 65536 ram0 [ 470.620980] (driver?) [ 470.623443] 0101 65536 ram1 [ 470.627091] (driver?) [ 470.629493] 0102 65536 ram2 [ 470.633141] (driver?) [ 470.635600] 0103 65536 ram3 [ 470.639250] (driver?) [ 470.641652] 0104 65536 ram4 [ 470.645300] (driver?) [ 470.647758] 0105 65536 ram5 [ 470.651406] (driver?) [ 470.653807] 0106 65536 ram6 [ 470.657462] (driver?) [ 470.659915] 0107 65536 ram7 [ 470.663565] (driver?) [ 470.666026] 0108 65536 ram8 [ 470.669619] (driver?) [ 470.672079] 0109 65536 ram9 [ 470.675729] (driver?) [ 470.678189] 010a 65536 ram10 [ 470.681927] (driver?) [ 470.684330] 010b 65536 ram11 [ 470.688064] (driver?) [ 470.690523] 010c 65536 ram12 [ 470.694259] (driver?) [ 470.696663] 010d 65536 ram13 [ 470.700398] (driver?) [ 470.702884] 010e 65536 ram14 [ 470.706623] (driver?) [ 470.709026] 010f 65536 ram15 [ 470.712762] (driver?) [ 470.715229] 0800 7834624 sda [ 470.718798] driver: sd [ 470.721285] 0801 8192 sda1 00000000-01[ 470.726063] [ 470.727596] 0802 524288 sda2 00000000-02[ 470.732372] [ 470.733959] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) [ 470.742258] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.56 #1 https://github.com/c-sky/forum/issues/1 [ 470.748016] Call Trace: [<9001fc38>] walk_stackframe+0x0/0x98 [ 470.753937] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.759184] [<9001fd16>] show_stack+0x12/0x34 [ 470.763595] [<901caa5a>] dump_stack+0xa/0x24 [ 470.767891] [<90069b36>] panic+0x76/0x1a4 [ 470.771922] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.777170] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.782422] [<90001c0e>] mount_block_root+0x106/0x1f4 [ 470.787501] [<90001e6c>] mount_root+0xa0/0x100 [ 470.791969] [<90019b90>] nfs_root_parms+0x400/0x404 [ 470.796870] [<9001a098>] nfs_export_path+0x400/0x404 [ 470.801854] [<90019094>] initcall_levels+0x20/0x24 [ 470.806667] [<90001124>] do_early_param+0x98/0x9c [ 470.811417] [<9001d954>] initcall_clk_disable_unused7s+0x0/0x4 [ 470.817452] [<90019104>] saved_root_name+0x3c/0x40 [ 470.822264] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.827514] [<90001f86>] prepare_namespace+0xba/0x150 [ 470.832587] [<90019090>] initcall_levels+0x1c/0x24 [ 470.837400] [<90001894>] kernel_init_freeable+0xe0/0x190 [ 470.842735] [<90001124>] do_early_param+0x98/0x9c [ 470.847466] [<903c89b0>] rest_init+0x68/0x6c [ 470.851758] [<903c89b8>] kernel_init+0x4/0xbc [ 470.856150] [<9001eac2>] ret_from_kernel_thread+0x2/0x20 [ 470.861496] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

找到原因了,将gx6605s.dts.txt文件中: bootargs = "console=ttyS0,115200 rootwait init=/sbin/init root=/dev/nfs rw nfsroot=192.168.101.200:/tmp/rootfs_nfs,v3,tcp,nolock ip=192.168.101.23";

改成下面这样就能用串口进入console了: bootargs = "console=ttyS0,115200 init=/sbin/init root=/dev/sda2 rw rootwait";

那么问题又来了,想启用framebuffer,用HDMI输出,应该怎么设置呢?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/c-sky/forum/issues/88#issuecomment-678628145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETCFKZPUOP34WWJASFNI3DSB6SNXANCNFSM4KZDRLSA .

-- Best Regards Guo Ren

ML: https://lore.kernel.org/linux-csky/

guoren83 commented 4 years ago

https://github.com/c-sky/addons-linux/tree/master/addons/drivers/video/fbdev/nationalchip

如果你能把 https://github.com/c-sky/addons-linux/tree/master/addons/drivers/video/fbdev/nationalchip upstream 到 linux 官网,感激不尽。改改然后,属你自己的名字,我会给你 reveiw

On Sun, Aug 23, 2020 at 9:02 AM Guo Ren guoren@kernel.org wrote:

厉害!

这是 fb 的 buildroot 仓库和配置

https://github.com/c-sky/buildroot/blob/master_backup/configs/csky_610_gx6605sfb_4.9_uclibc_br_defconfig

这是 fb driver

https://github.com/c-sky/addons-linux/tree/master/addons/drivers/video/fbdev/nationalchip

On Sat, Aug 22, 2020 at 7:17 PM Akiyama Akira notifications@github.com wrote:

@guoren83 https://github.com/guoren83

还有问题想请教一下你: 现在的情况是,用make CONF=thead_610_compat_4.9_glibc_br_defconfig 已经成功生成了uImage,gx6605s.dtb,rootfs.ext2,也查其他资料生成了usb.img,我生成的这个usb.img写到U盘后可以启动,因为USB串口正常显示了信息,但是串口最后并没有显示Linux console登录提示,也不响应输入,HDMI也没有任何显示,但是我用官网提供的usb.img https://c-sky.github.io/docs/quick-run.html,HDMI是可以正常显示Linux console的,也可以正常用键盘操作,请问这个情况应该办?

以下是串口输出的所有信息:

GxLoader v1.9 20140509 cpu family : CSKY chip model : gx6605s board type : 6605s memory size : 64 MB Flash type : w25q32 Flash size : 4 MB error: can't support 60HZ with PAL. warning: board-init not call function enable_dac, will open cvbs & ypbpr default. Hit any key to stop autoboot: 1 USB0: USB EHCI 1.00 scanning bus 0 for devices... EHCI timed out on TD - token=x 4 USB Device(s) found 1 Storage Device(s) found reading gx6605s.dtb get file gx6605s.dtb, size : 1555 USB0: USB EHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found 1 Storage Device(s) found reading uImage get file uImage, size : 3331308 uImage_load_kernel. [ 0.000000] Linux version 4.9.56 (akira@erbuntu) (gcc version 6.3.0 (Buildroot 2019.08-git-gf2298cb-dirty) ) #1 https://github.com/c-sky/forum/issues/1 Sat Aug 22 01:29:09 CST 2020 [ 0.000000] Phys. mem: 64MB [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat 905d0878, node_mem_map 93f80000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/sbin/init root=/dev/nfs rw nfsroot=192.168.101.200:/tmp/rootfs_nfs,v3,tcp,nolock ip=192.168.101.23 [ 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] Sorting ex_table... [ 0.000000] initrd not found or empty [ 0.000000] - disabling initrd [ 0.000000] Memory: 58692K/65536K available (3789K kernel code, 194K rwdata, 1876K rodata, 120K init, 265K bss, 6844K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000043] sched_clock: 32 bits at 27MHz, resolution 37ns, wraps every 79536431085ns [ 0.000148] clocksource: gx6605s: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns [ 0.000439] Console: colour dummy device 80x25 [ 0.000512] Calibrating delay loop... 382.46 BogoMIPS (lpj=764928) [ 0.028163] pid_max: default: 32768 minimum: 301 [ 0.028295] Security Framework initialized [ 0.028325] Yama: becoming mindful. [ 0.028469] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.028499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.030202] ASID allocator initialised with 256 entries [ 0.033402] devtmpfs: initialized [ 0.036000] evm: security.ima [ 0.036039] evm: security.capability [ 0.037388] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.037448] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.038514] NET: Registered protocol family 16 [ 0.041851] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.041894] DMA: vaddr: 0xc000e000 phy: 0x13880000, [ 0.065012] vgaarb: loaded [ 0.065695] SCSI subsystem initialized [ 0.066491] usbcore: registered new interface driver usbfs [ 0.066715] usbcore: registered new interface driver hub [ 0.066921] usbcore: registered new device driver usb [ 0.067189] Linux video capture interface: v2.00 [ 0.067340] pps_core: LinuxPPS API ver. 1 registered [ 0.067365] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.067444] PTP clock support registered [ 0.069857] clocksource: Switched to clocksource gx6605s [ 0.070182] VFS: Disk quotas dquot_6.6.0 [ 0.070332] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.108064] NET: Registered protocol family 2 [ 0.109638] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.109703] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.109738] TCP: Hash tables configured (established 1024 bind 1024) [ 0.110088] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.110140] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.110519] NET: Registered protocol family 1 [ 0.111753] RPC: Registered named UNIX socket transport module. [ 0.111796] RPC: Registered udp transport module. [ 0.111811] RPC: Registered tcp transport module. [ 0.111826] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.111853] PCI: CLS 0 bytes, default 16 [ 0.114961] audit: initializing netlink subsys (disabled) [ 0.115121] audit: type=2000 audit(0.111:1): initialized [ 0.115604] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 0.141625] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.142642] romfs: ROMFS MTD (C) 2007 Red Hat, Inc. [ 0.143012] fuse init (API version 7.26) [ 0.144338] 9p: Installing v9fs 9p2000 file system support [ 0.151657] Key type asymmetric registered [ 0.151701] Asymmetric key parser 'x509' registered [ 0.152282] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.152322] io scheduler noop registered [ 0.152339] io scheduler deadline registered (default) [ 0.152424] io scheduler cfq registered [ 0.153000] ipmi message handler version 39.2 [ 0.395131] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.399960] console [ttyS0] disabled [ 0.400152] 403000.serial: ttyS0 at MMIO 0x403000 (irq = 15, base_baud = 1843200) is a 16550A [ 0.844277] console [ttyS0] enabled [ 0.850496] [drm] Initialized [ 0.917514] brd: module loaded [ 0.941065] loop: module loaded [ 0.945562] libphy: Fixed MDIO Bus: probed [ 0.950372] usbcore: registered new interface driver rtl8150 [ 0.956402] usbcore: registered new interface driver r8152 [ 0.962029] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.968653] ehci-pci: EHCI PCI platform driver [ 0.973370] ehci-platform: EHCI generic platform driver [ 0.979033] ehci-platform 900000.ehci-hcd: EHCI Host Controller [ 0.985243] ehci-platform 900000.ehci-hcd: new USB bus registered, assigned bus number 1 [ 0.994051] ehci-platform 900000.ehci-hcd: irq 59, io mem 0x00900000 [ 1.013971] ehci-platform 900000.ehci-hcd: USB 2.0 started, EHCI 1.00 [ 1.023106] hub 1-0:1.0: USB hub found [ 1.027187] hub 1-0:1.0: 2 ports detected [ 1.032947] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.039353] ohci-pci: OHCI PCI platform driver [ 1.044380] usbcore: registered new interface driver usb-storage [ 1.051695] mousedev: PS/2 mouse device common for all mice [ 1.058583] usbcore: registered new interface driver uvcvideo [ 1.064488] USB Video Class driver (1.1.1) [ 1.068710] ledtrig-cpu: registered to indicate activity on CPUs [ 1.075277] usbcore: registered new interface driver usbhid [ 1.080999] usbhid: USB HID core driver [ 1.085631] NET: Registered protocol family 17 [ 1.090398] 9pnet: Installing 9P2000 support [ 1.099933] Key type trusted registered [ 1.108181] Key type encrypted registered [ 1.112364] ima: No TPM chip found, activating TPM-bypass! [ 1.118262] evm: HMAC attrs: 0x1 [ 1.357968] usb 1-2: new high-speed USB device number 2 using ehci-platform [ 1.421862] random: fast init done [ 1.514098] hub 1-2:1.0: USB hub found [ 1.518542] hub 1-2:1.0: 4 ports detected [ 1.813941] usb 1-2.1: new high-speed USB device number 3 using ehci-platform [ 1.933810] usb-storage 1-2.1:1.0: USB Mass Storage device detected [ 1.941323] scsi host0: usb-storage 1-2.1:1.0 [ 2.025944] usb 1-2.4: new high-speed USB device number 4 using ehci-platform [ 2.979885] scsi 0:0:0:0: Direct-Access 360 WiFi Flash Disk 1.00 PQ: 0 ANSI: 2 [ 2.992860] sd 0:0:0:0: [sda] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB) [ 3.002455] sd 0:0:0:0: [sda] Write Protect is off [ 3.007473] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 3.013779] sd 0:0:0:0: [sda] No Caching mode page found [ 3.019278] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 3.034538] sda: sda1 sda2 [ 3.045185] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 58.150017] random: crng init done [ 470.594230] VFS: Unable to mount root fs via NFS, trying floppy. [ 470.601488] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6 [ 470.608868] Please append a correct "root=" boot option; here are the available partitions: [ 470.617323] 0100 65536 ram0 [ 470.620980] (driver?) [ 470.623443] 0101 65536 ram1 [ 470.627091] (driver?) [ 470.629493] 0102 65536 ram2 [ 470.633141] (driver?) [ 470.635600] 0103 65536 ram3 [ 470.639250] (driver?) [ 470.641652] 0104 65536 ram4 [ 470.645300] (driver?) [ 470.647758] 0105 65536 ram5 [ 470.651406] (driver?) [ 470.653807] 0106 65536 ram6 [ 470.657462] (driver?) [ 470.659915] 0107 65536 ram7 [ 470.663565] (driver?) [ 470.666026] 0108 65536 ram8 [ 470.669619] (driver?) [ 470.672079] 0109 65536 ram9 [ 470.675729] (driver?) [ 470.678189] 010a 65536 ram10 [ 470.681927] (driver?) [ 470.684330] 010b 65536 ram11 [ 470.688064] (driver?) [ 470.690523] 010c 65536 ram12 [ 470.694259] (driver?) [ 470.696663] 010d 65536 ram13 [ 470.700398] (driver?) [ 470.702884] 010e 65536 ram14 [ 470.706623] (driver?) [ 470.709026] 010f 65536 ram15 [ 470.712762] (driver?) [ 470.715229] 0800 7834624 sda [ 470.718798] driver: sd [ 470.721285] 0801 8192 sda1 00000000-01[ 470.726063] [ 470.727596] 0802 524288 sda2 00000000-02[ 470.732372] [ 470.733959] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) [ 470.742258] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.56 #1 https://github.com/c-sky/forum/issues/1 [ 470.748016] Call Trace: [<9001fc38>] walk_stackframe+0x0/0x98 [ 470.753937] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.759184] [<9001fd16>] show_stack+0x12/0x34 [ 470.763595] [<901caa5a>] dump_stack+0xa/0x24 [ 470.767891] [<90069b36>] panic+0x76/0x1a4 [ 470.771922] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.777170] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.782422] [<90001c0e>] mount_block_root+0x106/0x1f4 [ 470.787501] [<90001e6c>] mount_root+0xa0/0x100 [ 470.791969] [<90019b90>] nfs_root_parms+0x400/0x404 [ 470.796870] [<9001a098>] nfs_export_path+0x400/0x404 [ 470.801854] [<90019094>] initcall_levels+0x20/0x24 [ 470.806667] [<90001124>] do_early_param+0x98/0x9c [ 470.811417] [<9001d954>] initcall_clk_disable_unused7s+0x0/0x4 [ 470.817452] [<90019104>] saved_root_name+0x3c/0x40 [ 470.822264] [<900190b4>] initcall_level_names+0x1c/0x20 [ 470.827514] [<90001f86>] prepare_namespace+0xba/0x150 [ 470.832587] [<90019090>] initcall_levels+0x1c/0x24 [ 470.837400] [<90001894>] kernel_init_freeable+0xe0/0x190 [ 470.842735] [<90001124>] do_early_param+0x98/0x9c [ 470.847466] [<903c89b0>] rest_init+0x68/0x6c [ 470.851758] [<903c89b8>] kernel_init+0x4/0xbc [ 470.856150] [<9001eac2>] ret_from_kernel_thread+0x2/0x20 [ 470.861496] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

找到原因了,将gx6605s.dts.txt文件中: bootargs = "console=ttyS0,115200 rootwait init=/sbin/init root=/dev/nfs rw nfsroot=192.168.101.200:/tmp/rootfs_nfs,v3,tcp,nolock ip=192.168.101.23";

改成下面这样就能用串口进入console了: bootargs = "console=ttyS0,115200 init=/sbin/init root=/dev/sda2 rw rootwait";

那么问题又来了,想启用framebuffer,用HDMI输出,应该怎么设置呢?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/c-sky/forum/issues/88#issuecomment-678628145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETCFKZPUOP34WWJASFNI3DSB6SNXANCNFSM4KZDRLSA .

-- Best Regards Guo Ren

ML: https://lore.kernel.org/linux-csky/

-- Best Regards Guo Ren

ML: https://lore.kernel.org/linux-csky/

Accellular commented 4 years ago

(手动滑稽害怕),buildroot我都是瞎摸索出来的,恐怕整合驱动就力不从心了 (:з」∠)

Dizgah commented 4 years ago

@akiyamaakira: same as you I have problem on displaying on HDMI output(framebuffer configuration). Did you solve this problem? could you please help me how I can add hdmi display output(framebuffer enable) to my OS image?

Accellular commented 4 years ago

@akiyamaakira: same as you I have problem on displaying on HDMI output(framebuffer configuration). Did you solve this problem? could you please help me how I can add hdmi display output(framebuffer enable) to my OS image?

steps:

  1. git clone https://github.com/c-sky/buildroot.git
  2. cd buildroot
  3. git checkout master_backup
  4. make O=./my_output/
  5. cd my_output
  6. make csky_610_gx6605sfb_4.9_uclibc_br_defconfig
  7. make
Dizgah commented 4 years ago

@akiyamaakira: same as you I have problem on displaying on HDMI output(framebuffer configuration). Did you solve this problem? could you please help me how I can add hdmi display output(framebuffer enable) to my OS image?

steps:

1. git clone https://github.com/c-sky/buildroot.git

2. cd buildroot

3. git checkout master_backup

4. make O=./my_output/

5. cd  my_output

6. make csky_610_gx6605sfb_4.9_uclibc_br_defconfig

7. make
location.c: In function ‘event_location* string_to_explicit_location(const char**, const language_defn*, int)’:
location.c:527:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
       || *argp == '\0'
                   ^~~~
Makefile:1132: recipe for target 'location.o' failed
make[4]: *** [location.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:8827: recipe for target 'all-gdb' failed
make[3]: *** [all-gdb] Error 2
Makefile:850: recipe for target 'all' failed
make[2]: *** [all] Error 2

I recieved error during building this branch and this is while now I can build OS Image using master branch. The only problem seems is about initrd. same as your syslog output, there are:

Jan  1 00:00:04 buildroot user.err kernel: [    0.000000] initrd not found or empty
Jan  1 00:00:04 buildroot user.err kernel: [    0.000000]  - disabling initrd

error which there is not in provided reference usb.img! then seems there is some thing wrong with bootarg. even when I changed to the your suggestion there is no improovement.

Accellular commented 4 years ago

@akiyamaakira: same as you I have problem on displaying on HDMI output(framebuffer configuration). Did you solve this problem? could you please help me how I can add hdmi display output(framebuffer enable) to my OS image?

steps:

1. git clone https://github.com/c-sky/buildroot.git

2. cd buildroot

3. git checkout master_backup

4. make O=./my_output/

5. cd  my_output

6. make csky_610_gx6605sfb_4.9_uclibc_br_defconfig

7. make
location.c: In function ‘event_location* string_to_explicit_location(const char**, const language_defn*, int)’:
location.c:527:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
       || *argp == '\0'
                   ^~~~
Makefile:1132: recipe for target 'location.o' failed
make[4]: *** [location.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:8827: recipe for target 'all-gdb' failed
make[3]: *** [all-gdb] Error 2
Makefile:850: recipe for target 'all' failed
make[2]: *** [all] Error 2

I recieved error during building this branch and this is while now I can build OS Image using master branch. The only problem seems is about initrd. same as your syslog output, there are:

Jan  1 00:00:04 buildroot user.err kernel: [    0.000000] initrd not found or empty
Jan  1 00:00:04 buildroot user.err kernel: [    0.000000]  - disabling initrd

error which there is not in provided reference usb.img! then seems there is some thing wrong with bootarg. even when I changed to the your suggestion there is no improovement.

cd to directory: my_output/build/host-gdb-4ecb98fbc2f94dbe01b69384afbc515107de73df/gdb

and edit file: location.c

in line 527: if (argp == NULL || argp == '\0' || argp[0] != '-' || !isalpha ((argp)[1]) || ((argp)[0] == '-' && (*argp)[1] == 'p')) return NULL;

modify || argp == '\0' to || argp == NULL

will fix the error