Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004、Linux4.19.66/at91/ramdisk/gcc7.3.1。

环境描述:
最近移植4.19.66内核,使用ramdisk文件系统,at91sam9x5,编译器使用的是gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabi

问题如下:
挂载文件系统报错
kernel panic - not syncing: Attempted to kill init exitcode=0x00000004
图片说明

尝试过的方法:
网上所说的内核和busybox编译选择EABI选项,这个确认是选择了的,无法解决我的问题!
同时搜索看到有的朋友说gcc编译器的lib库复制问题,请问gcc库复制有什么特别的地方,我是将lib目录下的内容全部删除、sudo rm -rf *,然后复制,sudo cp -rf * ./,最后使用strip缩小文件大小。

1个回答

engcrazy
嘚吧嘚吧 非常感谢,这个链接我有搜索到,但并不能解决,目前应该是拷贝lib库的问题
5 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Failed to execute /init. Attempting defaults... Kernel panic - not syncing: No init found.
请问出现这个问题要怎么解决?是坏块问题吗? 我用TQ210的板子 linux 3.0.8内核 arm-linux-gcc 4.4.6 u-boot2014.04 yaffs: dev is 32505859 name is "mtdblock3" rw yaffs: yaffs: Attempting MTD mount of 31.3,"mtdblock3" yaffs: block 250 is bad yaffs: block 2910 is bad yaffs: block 3990 is bad yaffs: yaffs_read_super: is_checkpointed 0 VFS: Mounted root (yaffs2 filesystem) on device 31:3. Freeing init memory: 176K Failed to execute /init. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. 在另一台机子上可以成功运行 但是我烧录到自己机子就出现了此问题
Kernel panic - not syncing: uncompression error
mips处理器产品上,使用initramfs文件系统类型启动,在cpio.gz文件目录下添加了几个lib库文件,其他未做改动,结果报出如下错误: __initramfs_start == 0x1f and == 0x8047f000 len == 3766048 Kernel panic - not syncing: uncompression error Call Trace: [<80026780>] dump_stack+0x8/0x34 [<80043e2c>] panic+0x68/0x16c [<80454b20>] populate_rootfs+0x50/0x23c [<8001a444>] do_one_initcall+0x6c/0x204 [<80452644>] kernel_init+0xcc/0x138 [<8002164c>] kernel_thread_helper+0x10/0x18 小弟第一次发帖,求各位高手们指点!
Virtualbox6安装Centos7,加载CentOS iso镜像文件后出错 kernel panic - not syncing Fatal exception
``` Virtualbox6安装Centos7,加载iso文件后出错 kernel panic - not syncing Fatal exception 具体软件版本: Virtualbox 6.0.16 CentOS-7-x86_64-DVD-1810 我把办法都试完了,请问该如何解决 ```
系统反复无规律重启 Kernel panic - not syncing
系统运行最近反复出现重启。 ``` [28146.010000] Code: e59c7000 e3570000 0a000012 e5900010 (e7973000) [28146.270000] ---[ end trace b3e6c7794c97a20e ]--- [28146.270000] ---[ end trace b3e6c7794c97a20f ]--- [28146.290000] ---[ end trace b3e6c7794c97a210 ]--- [28146.290000] ---[ end trace b3e6c7794c97a211 ]--- [28146.300000] Unable to handle kernel paging request at virtual address 8713ff00 [28146.300000] pgd = c6984000 [28146.300000] [8713ff00] *pgd=00000000 [28146.300000] Internal error: Oops: 5 [#12] PREEMPT [28146.300000] last sysfs file: /sys/devices/platform/mx28_gpio_led/leds/LED3/delay_on [28146.300000] Modules linked in: wl12xx wlcore_sdio wlcore wl12xx_platform_data(P) mac80211 cfg80211 sch_fq_codel sch_codel compat g_mass_storage [28146.300000] CPU: 0 Tainted: P D (2.6.35.3-670-g914558e+ #6) [28146.300000] PC is at kmem_cache_alloc+0x3c/0xa0 [28146.300000] LR is at load_elf_binary+0x1c/0x1298 [28146.300000] pc : [<c00b0bc4>] lr : [<c00f54dc>] psr: a0000093 [28146.300000] sp : c7e2be80 ip : c058beec fp : c00f54c0 [28146.300000] r10: 00000000 r9 : c7e2bfb0 r8 : fffffff8 [28146.300000] r7 : 8713ff00 r6 : 000000d0 r5 : 60000013 r4 : c057a39c [28146.300000] r3 : c00f54dc r2 : 60000093 r1 : 000000d0 r0 : 00000000 [28146.300000] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user [28146.300000] Control: 0005317f Table: 46984000 DAC: 00000015 [28146.300000] Process btd (pid: 6645, stack limit = 0xc7e2a270) [28146.300000] Stack: (0xc7e2be80 to 0xc7e2c000) [28146.300000] be80: 00000000 c033c668 c033c644 c058c558 c681d400 c058c108 c7e2bfb0 c00f54dc [28146.300000] bea0: beffff66 c7de62e0 c7dc3300 00000000 c0695f60 c009f18c 00000000 c7e2bf04 [28146.300000] bec0: 00000000 00000020 c7e2bf0c c7e2a000 00000001 c681d400 00000000 c681d400 [28146.300000] bee0: 00000013 c7e2a000 00000000 c00b9fc4 00000017 c7e2bf04 00000000 00000000 [28146.300000] bf00: c7e2a000 c058c558 c681d400 c058c108 c7e2a000 fffffff8 c7e2bfb0 00000000 [28146.300000] bf20: c00f54c0 c00ba624 befff000 40165878 00000000 c681d402 bedefc40 bedefeb4 [28146.300000] bf40: bedefc40 bedefe8c c7e2bfb0 c681d400 00000001 c7e2a000 00000000 c00bba94 [28146.300000] bf60: 40165880 00000000 c00bfe88 c000e000 c7e2bfb0 bedefe8c bedefc40 c00260c8 [28146.300000] bf80: c7e2a000 00000000 00000140 c0029824 c7e2bfb0 fffe587c 40165878 40180000 [28146.300000] bfa0: 0000000b c0025f20 fffe587c 40165878 40165880 bedefc40 bedefe8c 00000000 [28146.300000] bfc0: fffe587c 40165878 40180000 0000000b fffe5880 40181b68 00000000 00000140 [28146.300000] bfe0: 00000000 bedefb28 400764cc 400dc420 00000010 40165880 00000000 00000000 [28146.300000] [<c00b0bc4>] (kmem_cache_alloc+0x3c/0xa0) from [<c00f54dc>] (load_elf_binary+0x1c/0x1298) [28146.300000] [<c00f54dc>] (load_elf_binary+0x1c/0x1298) from [<c00ba624>] (search_binary_handler+0x1b4/0x310) [28146.300000] [<c00ba624>] (search_binary_handler+0x1b4/0x310) from [<c00bba94>] (do_execve+0x2e4/0x364) [28146.300000] [<c00bba94>] (do_execve+0x2e4/0x364) from [<c0029824>] (sys_execve+0x34/0x54) [28146.300000] [<c0029824>] (sys_execve+0x34/0x54) from [<c0025f20>] (ret_fast_syscall+0x0/0x2c) [28146.300000] Code: e59c7000 e3570000 0a000012 e5900010 (e7973000) [28146.570000] ---[ end trace b3e6c7794c97a212 ]--- [28146.570000] Kernel panic - not syncing: Attempted to kill init! [28146.580000] [<c002c004>] (unwind_backtrace+0x0/0xf4) from [<c043dc40>] (panic+0x60/0xe8) [28146.590000] [<c043dc40>] (panic+0x60/0xe8) from [<c004e5cc>] (do_exit+0x640/0x6b4) [28146.590000] [<c004e5cc>] (do_exit+0x640/0x6b4) from [<c0029ecc>] (die+0x248/0x324) [28146.600000] [<c0029ecc>] (die+0x248/0x324) from [<c002d42c>] (__do_kernel_fault+0x64/0x84) [28146.610000] [<c002d42c>] (__do_kernel_fault+0x64/0x84) from [<c002d590>] (do_page_fault+0x144/0x1e8) [28146.620000] [<c002d590>] (do_page_fault+0x144/0x1e8) from [<c00252d4>] (do_DataAbort+0x34/0x98) [28146.630000] [<c00252d4>] (do_DataAbort+0x34/0x98) from [<c0025a8c>] (__dabt_svc+0x4c/0x60) [28146.640000] Exception stack(0xc7c27e30 to 0xc7c27e78) [28146.640000] 7e20: 00000000 000080d0 20000093 c00b659c [28146.650000] 7e40: c057a39c 20000013 000080d0 8713ff00 c058bff8 ffffff9c 00000000 00000000 [28146.660000] 7e60: c058beec c7c27e78 c00b659c c00b0bc4 a0000093 ffffffff [28146.670000] [<c0025a8c>] (__dabt_svc+0x4c/0x60) from [<c00b0bc4>] (kmem_cache_alloc+0x3c/0xa0) [28146.670000] [<c00b0bc4>] (kmem_cache_alloc+0x3c/0xa0) from [<c00b659c>] (get_empty_filp+0x7c/0x12c) [28146.680000] [<c00b659c>] (get_empty_filp+0x7c/0x12c) from [<c00c1860>] (do_filp_open+0x120/0x528) [28146.690000] [<c00c1860>] (do_filp_open+0x120/0x528) from [<c00b35f4>] (do_sys_open+0x5c/0x114) [28146.700000] [<c00b35f4>] (do_sys_open+0x5c/0x114) from [<c0025f20>] (ret_fast_syscall+0x0/0x2c) [28146.710000] Rebooting in 10 seconds..HTLLCLLC U-Boot 2014.04-svn19 (Apr 19 2018 - 20:21:03) I2C: ready DRAM: 128 MiB MMC: MXS MMC: 0, MXS MMC: 1 MMC1: Command 8 timeout (status 0xe03c4020) MMC1: Command 55 timeout (status 0xe02c4020) *** Warning - bad CRC, using default environment ```
在kvm上安装oracle Linuxserver,启动失败
在kvm里面安装了虚拟机 安装没有问题 启动时候出现这个问题 开始启动提示:failed to access perfctr msr (MSR C1 IS 0) 然后:kernel panic - not syncing:attempted to kill init! 请问各位有什么办法解决吗?再次谢过
mini2440根文件系统的问题
用nfs挂载根文件系统没有任何问题,当制作成yaffs的镜像启动时出现: can't open /r/dev/console: no such file Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200 的问题。 启动参数:root=/dev/mtdblock2 rootfstype=yaffs2 rw init=/linuxrc console=ttySAC0,115200。启动参数是没有错的。
求助 nfs 挂载根文件系统问题
详细描述如下: 使用virtualbox中fedora8作为nfs服务器 通过桥接网卡与 ok6410开发板连接。 uboot参数: setenv bootcmd tftp c0008000 uImage\;bootm c0008000 setenv bootargs noinitrd init=/linuxrc root=/dev/nfs console=ttySAC0,115200 mem=256M nfsroot=192.168.2.100:/rootfs/,nolock,tcp ip=192.168.2.111:192.168.2.1:255.255.255.0::eth0:off 出错信息: VFS: Unable to mount root fs via NFS, trying floppy. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown -block(2,0) 在fedora上本机测试nfs没问题 在开发板上安装linux后与fedora测试nfs没问题
Ubuntu 18.04系统进不去了,只有老内核的恢复模式还能进,请大家帮看一下
Ubuntu 18.04 新内核和恢复模式进不去,会报错。老内核也进不去,只有老内核的恢复模式能进,请大佬帮看一下~~ 这边上传不了图片,问题详见 https://mp.csdn.net/postedit/103317233 virtualbox里安装的是Ubuntu 18.04.1 LTS ,打开idea程序没响应,强制关闭。然后系统就进不去了,报错 end kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0) 然后上网找解决方案,发现更新grub也解决不了 grub四个选项: ubuntu linux 4.15.0-70-generic ubuntu linux 4.15.0-70-generic(recovery mode) ubuntu linux 4.15.0-43-generic ubuntu linux 4.15.0-43-generic(recovery mode) 目前前两个选项(ubuntu linux 4.15.0-70-generic 和 ubuntu linux 4.15.0-70-generic(recovery mode),新内核和新内核的恢复模式)都报错。end kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0) 第3个选项(ubuntu linux 4.15.0-43-generic,老内核),界面显示ubuntu,但进不去 第4个选项(ubuntu linux 4.15.0-43-generic(recovery mode),老内核的恢复模式),输入好几次密码才能登进去 1. ubuntu linux 4.15.0-70-generic ubuntu linux 4.15.0-70-generic(recovery mode) 这两个选项,新内核和新内核的恢复模式都报错。end kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0) 2. 第3个选项(ubuntu linux 4.15.0-43-generic,老内核),界面显示ubuntu,但进不去 3. 第4个选项(ubuntu linux 4.15.0-43-generic(recovery mode),老内核的恢复模式),输入好几次密码才能登进去。 下面是du -h的回显 4. 之前显示过“GRUB 引导器先前安装到了一个消失了的磁盘上”,没有处理 ┌───────────────────────────┤ 正在设定 grub-pc ├────────────────────────────┐ │ GRUB 引导器先前安装到了一个消失了的磁盘上,或者它的唯一标识符由于某些原 │ │ 因变化了。确保安装的 GRUB 核心映像和 GRUB 模块及 grub.cfg 的同步非常重要 │ │ 。请再次检查以确保 GRUB 安装到了适当的引导设备。 │ │ │ │ 如果不确定 BIOS 使用哪个驱动器作为主引导,将 GRUB 安装到所有这些驱动器是 │ │ 一个不错的主意。 │ │ │ │ 注意:也可以将 GRUB 安装到分区的引导记录,这里提供了一些适当的分区。然而 │ │ ,这强制 GRUB 使用黑名单机制,会造成可靠性降低,因此不推荐使用。 │ │ │ │ GRUB 安装设备: │ │ │ │ [ ] /dev/sda (53687 MB; VBOX_HARDDISK) │ │ [ ] - /dev/sda1 (53684 MB; /) │ │ │ │ │ │ <确定> │ │ 使用了如下方法都没有生效 1. (1)开机以后不要直接进入ubuntu 的开机选项,选择高级模式, (2)然后选择recovery mode, (3)选择resume resume normal boot (4)进入系统后,打开终端,输入 sudo apt-get autoremove --purge 运行结束后,更新grub sudo update-grub 2. 运行下面的命令更新grub2: sudo update-grub2 sudo reboot
文件系统与kernel跑步起来
在编译文件系统的时候,加入wifi应用后,空间变大了,出现下面的 log: No filesystem could mount root, tried: ext2 squashfs vfat msdos Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) 已将在kernel 中的 make menuconfig 中 已经修改了 Device Drivers--->Block device -->Default RAM disk size[kbytes] 改到了足够大 请问是什么原因? 补充:没有打包 wifi 应用层时生成的文件系统可以正常跑起来。 分区表上 rootfs 的小大是 0x01000000 现在生成的有问题的文件系统的大小为14Mb,谢谢大婶们 1f00 1280 mtdblock0 (driver?) 1f01 256 mtdblock1 (driver?) 1f02 4096 mtdblock2 (driver?) 1f03 16384 mtdblock3 (driver?) 1f04 98304 mtdblock4 (driver?) 这个是我的分区列表
嵌入式学习,初始重烧整个系统
初学嵌入式,在重烧整个系统后(包括开发板的内核和文件系统),启动reset开发板出现一下代码,开发板不能正常使用 Looking up port of RPC 100003/2 on 192.168.0.103 rpcbind: server 192.168.0.103 not responding, timed out Root-NFS: Unable to get nfsd port number from server, using default Looking up port of RPC 100005/1 on 192.168.0.103 rpcbind: server 192.168.0.103 not responding, timed out Root-NFS: Unable to get mountd port number from server, using default mount: server 192.168.0.103 not responding, timed out Root-NFS: Server returned error -5 while mounting /home/bigyellow/desktop/nfs/fs_mini_mdev VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfs" or unknown-block(2,0) Please append a correct "root=" boot option; here are the available partitions: 1f00 256 mtdblock0 (driver?) 1f01 128 mtdblock1 (driver?) 1f02 2048 mtdblock2 (driver?) 1f03 521856 mtdblock3 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-bloc 开发板显示如下图 k(2,0)![图片说明](https://img-ask.csdn.net/upload/201711/04/1509770470_347000.jpg)
linux内核在哪里加载根文件系统?
linux内核启动后,会对根文件系统进行加载,但是内核是在哪里对根文件进行加载的? ``` List of all partitions: 1f00 256 mtdblock0 (driver?) 1f01 64 mtdblock1 (driver?) 1f02 6272 mtdblock2 (driver?) 1f03 1408 mtdblock3 (driver?) 1f04 64 mtdblock4 (driver?) 1f05 64 mtdblock5 (driver?) 1f06 64 mtdblock6 (driver?) No filesystem could mount root, tried: squashfs Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2) ``` 上面是串口打印的信息,我对No filesystem could mount root, tried:,这句话进行查找,定位到了mips-linux-2.6.31\init\Do_mounts.c_这个文件中 ``` printk("List of all partitions:\n"); printk_all_partitions(); printk("No filesystem could mount root, tried: "); for (p = fs_names; *p; p += strlen(p)+1) printk(" %s", p); printk("\n"); ``` 之后我就看不懂这些了,根文件系统是在哪里加载进来的??? 而且我在Uboot下,进行烧写时,是将根文件系统写到0x9f050000这个位置,但是在内核里面是如何指定的??
GO语言打开文件失败,runtime error
打开文件直接失败了,是接受文件内容的变量空间不够嘛?这种情况不应该出现在打开文件时吧,大佬们,救救~ ``` import ( ... "github.com/tealeg/xlsx" ) func main() { ... xlFile, err := xlsx.OpenFile(file.Name()) if err != nil { fmt.Printf("open file: %s --> failed: %s\n", file.Name(), err) } ``` ``` open file: test.xlsx --> failed: runtime error: index out of range [63] with length 0 panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x30 pc=0x51d3db] goroutine 1 [running]: main.main() c:/GoWorks/src/github.com/xxx/project/excel/main.go:39 +0x3cb exit status 2 ```
开发板无法挂载nfs,求大神指点
没有用虚拟机,ubuntu 17.10系统,开发板通过tftp从主机载入设备数文件和内核文件, 启动以后通过nfs挂载根文件系统。。。然而。。实现不了 打印信息是这样的: VFS: Unable to mount root fs via NFS, trying floppy. [ 100.375000] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6 [ 100.385000] Please append a correct "root=" boot option; here are the available partitions: [ 100.390000] b300 3817472 mmcblk0 driver: mmcblk [ 100.395000] b301 2114343 mmcblk0p1 00000000-01 [ 100.405000] b302 309507 mmcblk0p2 00000000-02 [ 100.410000] b303 1051578 mmcblk0p3 00000000-03 [ 100.415000] b304 309507 mmcblk0p4 00000000-04 [ 100.420000] b318 512 mmcblk0rpmb (driver?) [ 100.425000] b310 4096 mmcblk0boot1 (driver?) [ 100.430000] b308 4096 mmcblk0boot0 (driver?) [ 100.435000] b320 7761920 mmcblk1 driver: mmcblk [ 100.440000] b321 7757824 mmcblk1p1 00000000-01 [ 100.445000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) [ 100.445000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.25 #1 [ 100.445000] [<c0014294>] (unwind_backtrace) from [<c0011368>] (show_stack+0x10/0x14) [ 100.445000] [<c0011368>] (show_stack) from [<c0405abc>] (dump_stack+0x64/0xb4) [ 100.445000] [<c0405abc>] (dump_stack) from [<c0402f4c>] (panic+0x8c/0x1dc) [ 100.445000] [<c0402f4c>] (panic) from [<c05a8038>] (mount_block_root+0x188/0x234) [ 100.445000] [<c05a8038>] (mount_block_root) from [<c05a82b8>] (mount_root+0xe8/0x108) [ 100.445000] [<c05a82b8>] (mount_root) from [<c05a8438>] (prepare_namespace+0x160/0x1c4) [ 100.445000] [<c05a8438>] (prepare_namespace) from [<c05a7cd4>] (kernel_init_freeable+0x180/0x1c8) [ 100.445000] [<c05a7cd4>] (kernel_init_freeable) from [<c040223c>] (kernel_init+0x8/0xe4) [ 100.445000] [<c040223c>] (kernel_init) from [<c000e5b8>] (ret_from_fork+0x14/0x3c) [ 100.445000] drm_kms_helper: panic occurred, switching back to text console
自己用busybox做的文件系统,在启动时遇到的问题,请帮忙分析下...
U-Boot SPL 2014.04-rc3 (Oct 08 2014 - 22:34:35) reading args spl_load_image_fat_os: error reading image args, err - -1 reading u-boot.img reading u-boot.img U-Boot 2014.04-rc3 (Oct 08 2014 - 22:34:35) I2C: ready DRAM: 512 MiB NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - readenv() failed, using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Warning: Your board does not use generic board. Please read doc/README.generic-board and take action. Boards not upgraded by the late 2014 may break or be removed. Hit any key to stop autoboot: 0 gpio: pin 53 (gpio 53) value is 1 mmc0 is current device gpio: pin 54 (gpio 54) value is 1 SD/MMC found on device 0 reading uEnv.txt 1644 bytes read in 6 ms (267.6 KiB/s) gpio: pin 55 (gpio 55) value is 1 Loaded environment from uEnv.txt Importing environment from mmc ... Checking if uenvcmd is set ... gpio: pin 56 (gpio 56) value is 1 Running uenvcmd ... reading zImage 4379064 bytes read in 244 ms (17.1 MiB/s) 493466 bytes read in 39 ms (12.1 MiB/s) reading /am335x-boneblack.dtb 24968 bytes read in 10 ms (2.4 MiB/s) Kernel image @ 0x82000000 [ 0x000000 - 0x42d1b8 ] ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Using Device Tree in place at 88000000, end 88009187 Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.248220] omap2_mbox_probe: platform not supported [ 0.254754] tps65217-bl tps65217-bl: no platform data provided [ 0.319285] bone-capemgr bone_capemgr.9: slot #0: No cape found [ 0.356394] bone-capemgr bone_capemgr.9: slot #1: No cape found [ 0.393503] bone-capemgr bone_capemgr.9: slot #2: No cape found [ 0.430610] bone-capemgr bone_capemgr.9: slot #3: No cape found [ 0.446367] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN conflict P8.45 (#5:BB-BONELT-HDMI) [ 0.456390] bone-capemgr bone_capemgr.9: slot #6: Failed verification [ 0.470328] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed [ 0.477961] bone-capemgr bone_capemgr.9: loader: failed to load slot-6 BB-BONELT-HDMIN:00A0 (prio 2) [ 0.542232] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8 [ 0.554439] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22 [ 0.562056] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single [ 1.035964] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 1.045162] [<c001023d>] (unwind_backtrace+0x1/0x88) from [<c037f759>] (panic+0x55/0x14c) [ 1.054205] [<c037f759>] (panic+0x55/0x14c) from [<c062e953>] (mount_block_root+0x12b/0x168) [ 1.063522] [<c062e953>] (mount_block_root+0x12b/0x168) from [<c062eabb>] (mount_root+0x87/0xa8) [ 1.073219] [<c062eabb>] (mount_root+0x87/0xa8) from [<c062f20d>] (initrd_load+0x115/0x1f0) [ 1.082431] [<c062f20d>] (initrd_load+0x115/0x1f0) from [<c062eb4b>] (prepare_namespace+0x6f/0x114) [ 1.092419] [<c062eb4b>] (prepare_namespace+0x6f/0x114) from [<c037c02b>] (kernel_init+0x7/0x90) [ 1.102116] [<c037c02b>] (kernel_init+0x7/0x90) from [<c000c3f9>] (ret_from_fork+0x11/0x38) [ 1.111331] drm_kms_helper: panic occurred, switching back to text console
UBI根文件系统制作出错 求大神解答 急求
我再制作根文件系统的之后挂载不上 我们的内核 uboot都支持ubi文件系统 所以我只配置busybox来制作文件系统 我制作的大致流程是按照这个网址做的 http://www.eefocus.com/srnoc/blog/15-05/312502_55a04.html 用的sudo mkfs.ubifs -m 2048 -c 1751 -e 126976 -r ./rootfs -o ubifs.img sudo ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg两个命令生成的ubi.img镜像 把生成的第二个镜像ubi.img通过Nu-Writer把镜像烧写到板子上 我们的板子是 atmel 的at91sam9260 然后打开终端显示的 [ 1.320000] UBI: attaching mtd1 to ubi0 [ 1.350000] UBI error: scan_peb: bad image sequence number 547522629 in PEB 64, expected 439457824 [ 1.360000] Erase counter header dump: [ 1.370000] magic 0x55424923 [ 1.370000] version 1 [ 1.370000] ec 0 [ 1.380000] vid_hdr_offset 2048 [ 1.380000] data_offset 4096 [ 1.380000] image_seq 547522629 [ 1.390000] hdr_crc 0x3991a5ad [ 1.390000] erase counter header hexdump: [ 1.390000] UBI error: ubi_attach_mtd_dev: failed to attach mtd1, error -22 [ 1.400000] UBI error: ubi_init: cannot attach mtd1 [ 1.410000] nuc970-rtc nuc970-rtc: setting system clock to 2005-01-01 00:04:01 UTC (1104537841) [ 1.450000] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0_0", error -19 [ 1.460000] VFS: Cannot open root device "ubi0_0" or unknown-block(0,0): error -19 [ 1.460000] Please append a correct "root=" boot option; here are the available partitions: [ 1.470000] 1f00 16384 mtdblock0 (driver?) [ 1.480000] 1f01 1032192 mtdblock1 (driver?) [ 1.480000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 1.480000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.32 #150 [ 1.480000] Backtrace: [ 1.480000] [<c0012d3c>] (dump_backtrace+0x0/0x108) from [<c0012e5c>] (show_stack+0x18/0x1c) [ 1.480000] r6:c2a15000 r5:ffffffed r4:c2841ee0 [ 1.480000] [<c0012e44>] (show_stack+0x0/0x1c) from [<c03a3ab4>] (dump_stack+0x20/0x2c) [ 1.480000] [<c03a3a94>] (dump_stack+0x0/0x2c) from [<c03a3754>] (panic+0x90/0x20c) [ 1.480000] [<c03a36c4>] (panic+0x0/0x20c) from [<c04881d8>] (mount_block_root+0x1b0/0x280) [ 1.480000] r3:00000000 r2:c28ea048 r1:c2841ee0 r0:c042da60 [ 1.480000] [<c0488028>] (mount_block_root+0x0/0x280) from [<c0488430>] (prepare_namespace+0x80/0x1e8) [ 1.480000] [<c04883b0>] (prepare_namespace+0x0/0x1e8) from [<c0487658>] (kernel_init_freeable+0x1d0/0x238) [ 1.480000] r6:00000008 r5:c04a7624 r4:c04ad0dc [ 1.480000] [<c0487488>] (kernel_init_freeable+0x0/0x238) from [<c03a30cc>] (kernel_init+0x10/0x164) [ 1.480000] [<c03a30bc>] (kernel_init+0x0/0x164) from [<c000f7b0>] (ret_from_fork+0x14/0x24) [ 1.480000] r5:c03a30bc r4:00000000 从UBI开始出错 以上的过程是我制作根文件系统的全部过程 请问我到底那里不对 或者我少做了什么 我搞了一个多星期啦还没找到哪的毛病 我刚毕业 参加工作啥也不懂 还在试用期就完不成任务真怕他们把我辞了 求大神帮帮我 呜呜![图片说明](https://img-ask.csdn.net/upload/201708/07/1502069372_75830.png)
How to compile and run "hello world" program for ARM architectures on Gem5?
I have compile the "hello.c" file (in directory: tests/test-progs/hello/src) like this: aarch64-linux-gun-gcc hello.c -o hello -static and run gem5: ./build/ARM/gem5.debug configs/example/se.py -c tests/test-progs/hello/src/hello then, I found this error: panic: Attempted to execute unimplemented instructions 'mrs' (inst 0x4d5380000) It shows that the mrs inst is not implemented in gem5. Totally, I have three questions as follows: Question 1: In order to run hello program for ARM architecture, how to compile the hello source file to avoid "mrs" insts ? Question 2: How can I know whether the instruction A has been implemented in gem5 or not for ARM architecture ? Question 3: If I choose armclang compiler, the error is: ``` panic: Attempted to execute unimplemented instructions 'hlt' (inst 0x4d45e0000) ``` So how to compile hello to avoid generating "hlt" ?
嵌入式2.6.32内核挂载根文件系统root.cramfs失败
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00300000 ... done zImage magic = 0x016f2818 Setup linux parameters at 0x30000100 linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttyS"MACH_TYPE = 193 NOW, Booting Linux...... Uncompressing Linux.............................................................Linux version 2.6.32.63 (rival@ubuntu) (gcc version 4.4.3 (ctng-1.6.1) ) #7 Sat4CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 CPU: VIVT data cache, VIVT instruction cache Machine: SMDK2410 ATAG_INITRD is deprecated; please update your bootloader. Memory policy: ECC disabled, Data cache writeback CPU S3C2410A (id 0x32410002) S3C24XX Clocks, (c) 2004 Simtec Electronics S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0sPID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 60664KB available (3708K code, 342K data, 156K init, 0K highmem) Hierarchical RCU implementation. NR_IRQS:99 irq: clearing pending ext status 00080000 irq: clearing subpending status 00000002 Console: colour dummy device 80x30 console [ttySAC0] enabled Calibrating delay loop... 99.53 BogoMIPS (lpj=248832) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 S3C Power Management, Copyright 2004 Simtec Electronics S3C2410: Initialising architecture S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics DMA channel 0 at c4808000, irq 33 DMA channel 1 at c4808040, irq 34 DMA channel 2 at c4808080, irq 35 DMA channel 3 at c48080c0, irq 36 bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb s3c-i2c s3c2410-i2c: slave address 0x10 s3c-i2c s3c2410-i2c: bus frequency set to 97 KHz s3c-i2c s3c2410-i2c: i2c-0: S3C I2C adapter NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NetWinder Floating Point Emulator V0.97 (extended precision) JFFS2 version 2.2. (NAND) (SUMMARY) .. 2001-2006 Red Hat, Inc. ROMFS MTD (C) 2007 Red Hat, Inc. msgmni has been set to 118 io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach s3c2410-lcd: probe of s3c2410-lcd failed with error -22 lp: driver loaded but no devices found ppdev: user-space parallel port driver Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410 s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410 s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410 brd: module loaded loop: module loaded Uniform Multi-Platform E-IDE driver ide-gd driver 1.18 ide-cd driver 5.00 S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns s3c24xx-nand s3c2410-nand: NAND ECC disabled NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bi)NAND_ECC_NONE selected by board driver. This is not recommended !! Scanning device for bad blocks Bad eraseblock 633 at 0x0000009e4000 Bad eraseblock 1824 at 0x000001c80000 Creating 6 MTD partitions on "NAND 64MiB 3,3V 8-bit": 0x000000000000-0x000000020000 : "vivi" 0x000000020000-0x000000030000 : "param" 0x000000030000-0x000000330000 : "kernel" 0x000000330000-0x000000630000 : "root" 0x000000630000-0x000003d30000 : "yaffs" 0x000003d30000-0x000003dfc000 : "ucos" dm9000 Ethernet Driver, V1.31 usbmon: debugfs is not available ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver s3c2410-ohci s3c2410-ohci: S3C24XX OHCI s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usbcore: registered new interface driver libusual usbcore: registered new interface driver usbserial USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core USB Serial support registered for FTDI USB Serial Device usbcore: registered new interface driver ftdi_sio ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver USB Serial support registered for pl2303 usbcore: registered new interface driver pl2303 pl2303: Prolific PL2303 USB to serial adaptor driver mice: PS/2 mouse device common for all mice S3C24XX RTC, (c) 2004,2006 Simtec Electronics s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0 S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled Advanced Linux Sound Architecture Driver Version 1.0.21. No device for DAI UDA134X No device for DAI s3c24xx-i2s ALSA device list: No soundcards found. TCP cubic registered NET: Registered protocol family 17 s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time List of all partitions: 1f00 128 mtdblock0 (driver?) 1f01 64 mtdblock1 (driver?) 1f02 3072 mtdblock2 (driver?) 1f03 3072 mtdblock3 (driver?) 1f04 56320 mtdblock4 (driver?) 1f05 816 mtdblock5 (driver?) No filesystem could mount root, tried: cramfs Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) Backtrace: [<c0033984>] (dump_backtrace+0x0/0x114) from [<c02f5a40>] (dump_stack+0x18/0x1c) r6:00008000 r5:c388b007 r4:c03f6ae4 [<c02f5a28>] (dump_stack+0x0/0x1c) from [<c02f5a90>] (panic+0x4c/0x11c) [<c02f5a44>] (panic+0x0/0x11c) from [<c00090fc>] (mount_block_root+0x1d8/0x218) r3:00000003 r2:80000000 r1:c381bf64 r0:c0372cc6 [<c0008f24>] (mount_block_root+0x0/0x218) from [<c0009200>] (mount_root+0xc4/0x)[<c000913c>] (mount_root+0x0/0xfc) from [<c00093a4>] (prepare_namespace+0x16c/0) r5:c0028829 r4:c03f6234 [<c0009238>] (prepare_namespace+0x0/0x1c0) from [<c0008630>] (kernel_init+0xe8/) r5:c0027104 r4:c03f6000 [<c0008548>] (kernel_init+0x0/0x120) from [<c005637c>] (do_exit+0x0/0x5dc) r5:00
linux 内核 spi驱动出错
请教,我在linux下(2.6.32)进行gpio模拟spi操作,但是当我调用spi_register_board_info 函数的时候,代码死机了,其具体情况如下: static struct spi_board_info stm32_board_info = { .modalias = "stm32-spi", .max_speed_hz = 10000000, .bus_num = 1, .mode = SPI_MODE_0, }; ret = spi_register_board_info(&stm32_board_info, 1); 死机了: do_cpu invoked from kernel context![#1]: Cpu 0 $ 0 : 00000000 004fdbd6 0000001f 00000001 $ 4 : 81c97c84 00000001 ffffffff 80126830 $ 8 : 3a207061 72616c6c 00000000 7271210a $12 : 7fa41760 00103044 2a60d837 00000000 $16 : 826e02c0 81fa1e08 826e0000 7fa417f0 $20 : 81fa1e08 0049a688 004e9d90 004fdb68 $24 : 00000000 80125f34 $28 : 81fa0000 81fa1930 004fdbc6 81c82684 Hi : 00000000 Lo : 17b44000 epc : 801df82c spi_register_board_info+0x4/0xa0 // 该接口挂了 Tainted: P ra : 81c82684 para_init+0x30/0xd8 [umac] Status: 1000ff03 KERNEL EXL IE Cause : 9080002c PrId : 00019374 (MIPS 24Kc) Modules linked in: wvas_wloc wbs_sec aclk rg_data_plane efqos_kernel roamk rg_wvlan proc_info ar93xx_et eth_subif umac ath_dev(P) ath_rate_atheros(P) ath_hal asf(P) adf(P) wbs_fwd_intf capwap_kernel rg_wlibk wbuf wbs_mng ef_bridge_ko af_packet ipv4 ref_ip eth_parser srvk net2con fpm_k ref_frame lsm_ko wbs_dev dm_chardev env_utils setmac_utils product_info_utils get_envi mtdoops rg_console rg_sysfs rg_thread_det rg_lowmem_killer rg_dprintk Process wbs_mng.elf (pid: 603, threadinfo=81fa0000, task=82a64038, tls=2aab7770) Stack : 00000009 81c8c89c 00000000 00000010 826e02c0 81c81094 81fa1a88 81fa1b70 00000006 00000000 00000001 00000000 00000005 00000001 81fa1e08 81c4bd1c 00000000 00000042 004fdbc6 00000010 00000000 00000000 81fa1b2c 00000000 00000000 00000001 81fa1a50 81fa1a5c 81fa1a50 00000003 00000000 00000000 00060000 8089c000 00000000 00060001 000000ff 00000000 00060000 004e0000 ... Call Trace: [<801df82c>] spi_register_board_info+0x4/0xa0 [<81c82684>] para_init+0x30/0xd8 [umac] [<81c81094>] rj_ath_wloc_set_tcl_cb+0x12c/0x14c [umac] [<81c4bd1c>] ath_ioctl+0x1b8/0x82c [umac] [<80160688>] dev_ioctl+0x664/0x71c [<80089920>] vfs_ioctl+0x2c/0x70 [<8008a008>] do_vfs_ioctl+0x5a0/0x5f8 [<8008a0a8>] sys_ioctl+0x48/0x7c [<80004124>] stack_done+0x20/0x3c Code: 000003f1 0001678c 00000004 <1100000d> 00000001 00016620 00000000 1100fff1 000004d2 Fatal exception: panic in 5 seconds Kernel panic - not syncing: Fatal exception Call Trace: [<800074bc>] dump_stack+0x8/0x34 [<80007550>] panic+0x68/0x13c [<8000f8d8>] die+0xc8/0xd0 [<8000fa24>] do_cpu+0x38/0x268 [<80002400>] ret_from_exception+0x0/0xc [<801df82c>] spi_register_board_info+0x4/0xa0 [<81c82684>] para_init+0x30/0xd8 [umac] [<81c81094>] rj_ath_wloc_set_tcl_cb+0x12c/0x14c [umac] [<81c4bd1c>] ath_ioctl+0x1b8/0x82c [umac] [<80160688>] dev_ioctl+0x664/0x71c [<80089920>] vfs_ioctl+0x2c/0x70 [<8008a008>] do_vfs_ioctl+0x5a0/0x5f8 [<8008a0a8>] sys_ioctl+0x48/0x7c [<80004124>] stack_done+0x20/0x3c 自身没感觉到调用的时候产生了啥错误,请帮忙指点下;
Eloh 用什么办法编写
Problem Description In 3201, The humans have conquered the whole universe. During the conquest ,we found lots of magical phenomena overthrown our previous cognition. For example, the Eloh is a hole like the black hole but has its own property. And if something is around the Eloh, there is a force between them, named “EF”(Eloh Force). Every Eloh has a circle area around it, and the Eloh is the center of the circle area. The circle is called “EFL” (Eloh Force Line). If there is a thing that has the mass(m) and the volume(v), the EF will satisfy the following properties:   1. In the EFL, EF = v / m and the force performs as the gravitational force.   2. Out the EFL, EF = m / v and the force performs as the repulsion force    One day, Farmer John was grazing his robot cows in the universe. The number of cows is N and every cow has its own mass(mi) and volume(vi). Suddenly, he encountered such an Eloh. At first he and his cows are in the EFL. Sadly, the Eloh is swept away some of his cows that stressed the most powerful EF from the Eloh. In other words, sort all the cows’EF from large to small and choose some cows from the front to the back. Luckily, he and the rest of cows escaped to the external of the EFL. To leave the Eloh quickly, he put the reminding cows packaged as a connecting body, i.e, the overall performance of the mass M = sum(mi) (the cow[i] is not swept by the Eloh) and the volume V = sum(vi) (like the previous). Because of the panic, he don’t know exactly how many cows were swept away, just know that not all been swept away, nor is the zero. As a magical uncle grazing in the universe, Farmer John can create a wormhole through the Eloh center and the outside world. Farmer John can exchange some pair of the cows(pick some cows in the Eloh and choose the same number of cows outside the cave). The connecting body’s M and V will calculator again after exchanging. Now, Farmer John would like to know when how many cows were swept away in the beginning, there is an exchange scheme can make his EF bigger. To ensure that no two cows have the same density(m/v). Input There are multiple test cases. The first line of the case contains a number N(0 < N <= 200000) The following N lines, each of two number mi and vi.(0 < mi,vi <= 100000), the sequence will be in density ascending order. The input is terminated by a line containing 0. Output For each case of input, the output should consist of one line giving the number Q of the exchange schemes, following Q lines that contain a number K meaning if in the beginning, there are K cows swept away, Farmer John can find an exchange program to help him. Of course, you should output them from small to big. Sample Input 5 1 3 3 8 4 10 1 2 5 9 0 Sample Output 2 1 2
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
《阿里巴巴开发手册》读书笔记-编程规约
Java编程规约命名风格 命名风格 类名使用UpperCamelCase风格 方法名,参数名,成员变量,局部变量都统一使用lowerCamelcase风格 常量命名全部大写,单词间用下划线隔开, 力求语义表达完整清楚,不要嫌名字长 ...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Linux 命令(122)—— watch 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] watch(1) manual
Linux 命令(121)—— cal 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] cal(1) manual
记jsp+servlet+jdbc实现的新闻管理系统
1.工具:eclipse+SQLyog 2.介绍:实现的内容就是显示新闻的基本信息,然后一个增删改查的操作。 3.数据库表设计 列名 中文名称 数据类型 长度 非空 newsId 文章ID int 11 √ newsTitle 文章标题 varchar 20 √ newsContent 文章内容 text newsStatus 是否审核 varchar 10 news...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
相关热词 c# 数组类型 泛型约束 c#的赛狗日程序 c# 传递数组 可变参数 c# 生成存储过程 c# list 补集 c#获得所有窗体 c# 当前秒数转成年月日 c#中的枚举 c# 计算校验和 连续随机数不重复c#
立即提问