晕哥,使用BSP内核,选通了ov5640。然后也更改了fex。
[csi1]
vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 0
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>
vip_csi_d8 = port:PE12<2><default><default><default>
;vip_csi_d9 = port:PE13<2><default><default><default>
vip_csi_d10 = port:PE14<2><default><default><default>
vip_csi_d11 = port:PE15<2><default><default><default>
vip_csi_sck = port:PE21<2><default><default><default>
vip_csi_sda = port:PE22<2><default><default><default>
vip_dev0_mname = "ov5640"
vip_dev0_pos = "front"
vip_dev0_twi_id = 4
vip_dev0_twi_addr = 0x78
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = ""
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = ""
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = ""
vip_dev0_dvdd_vol = 1500000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE23<1><default><default><default>
vip_dev0_pwdn = port:PE24<1><default><default><default>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18
vip_dev1_mname = "gc2035"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 4
vip_dev1_twi_addr = 0x78
vip_dev1_isp_used = 0
vip_dev1_fmt = 1
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = ""
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = ""
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = ""
vip_dev1_dvdd_vol = 1500000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset =
vip_dev1_pwdn =
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =
可是在用fswebcam拍照时
# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
[ 26.003939] [VFE]vfe_open
--- Opening /dev/video1...
[ 26.007092] [VFE]..........................vfe clk open!.......................
Trying source module v4l2...[ 26.018941] [VFE]vfe_open ok
/dev/video1 opened.
[ 26.024950] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
No input was specified, usin[ 26.037247] [VFE]vfe_close
g the first.
Unable to[ 26.042806] [VFE]vfe select input flag = 0, s_input have not be used .
query input 0.
VIDIOC[ 26.053040] [VFE]..........................vfe clk close!.......................
_ENUMINPUT: Invalid argument
26.064499] [VFE]vfe_close end
0m#
#
#
#
#
#
#
#
# i2cd
i2cdetect i2cdump
# i2cd
i2cdetect i2cdump
# i2cdetect -l
i2cdetect: can't open '/sys/class/i2c-dev': No such file or directory
# i2cdetect -y 1
i2cdetect: can't open '/dev/i2c/1': No such file or directory
# ls
#
这是什么原因呢
离线
有没有 /dev/i2cX, /dev/i2c/X 这些设备, 如果没有可能是 menuconfig 上面没有勾选 I2C User Interface
主要是这个错误
--- Opening /dev/video1...
[ 33.650171] [VFE]vfe_open
Trying source module v4l2...[ 33.656150] [VFE]..........................vfe clk open!.......................[ 33.667840] [VFE]vfe_open ok
[ 33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [ 33.681675] [VFE]vfe_close
input was specified, using the f[ 33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [ 33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[ 33.708530] [VFE]vfe_close end
PUT: Invalid argument
不知道这个是什么造成的
最近编辑记录 晕哥小弟 (2019-05-15 11:41:19)
离线
https://www.kancloud.cn/lichee/lpi0/470832
群主也有这个问题,但是没有说清楚。
离线
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #37 Wed May 15 11:39:13 CST 2019
[ 0.000000] Initialized persistent memory from 41d20800-41d307ff
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 29176k/29176k available, 36360k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc052b000 (5260 kB)
[ 0.000000] .init : 0xc052b000 - 0xc054f000 ( 144 kB)
[ 0.000000] .data : 0xc0550000 - 0xc05cd490 ( 502 kB)
[ 0.000000] .bss : 0xc05cd4b4 - 0xc06ae354 ( 900 kB)
[ 0.000000] NR_IRQS:544
[ 0.000000] Architected local timer running at 24.00MHz.
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000148] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[ 0.000168] pid_max: default: 32768 minimum: 301
[ 0.000312] Mount-cache hash table entries: 512
[ 0.000870] CPU: Testing write buffer coherency: ok
[ 0.001132] Setting up static identity map for 0x403aa208 - 0x403aa260
[ 0.001816] devtmpfs: initialized
[ 0.003522] pinctrl core: initialized pinctrl subsystem
[ 0.004012] NET: Registered protocol family 16
[ 0.004320] DMA: preallocated 128 KiB pool for atomic coherent allocations
[ 0.004380] script_sysfs_init success
[ 0.005154] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[ 0.006059] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[ 0.006427] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[ 0.007202] persistent_ram: found existing buffer, size 21180, start 21180
[ 0.101129] console [ram-1] enabled
[ 0.102061] Not Found clk pll_isp in script
[ 0.102194] Not Found clk pll_video in script
[ 0.102422] Not Found clk pll_ve in script
[ 0.102544] Not Found clk pll_periph0 in script
[ 0.102665] Not Found clk pll_de in script
[ 0.107130] bio: create slab <bio-0> at 0
[ 0.107512] pwm module init!
[ 0.109723] SCSI subsystem initialized
[ 0.110225] usbcore: registered new interface driver usbfs
[ 0.110433] usbcore: registered new interface driver hub
[ 0.110801] usbcore: registered new device driver usb
[ 0.111097] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[ 0.111227] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[ 0.111456] Linux video capture interface: v2.00
[ 0.111650] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[ 0.112215] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.113108] Switching to clocksource arch_sys_counter
[ 0.119984] NET: Registered protocol family 2
[ 0.119984] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.119984] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.119984] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.119984] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.120225] TCP: reno registered
[ 0.120355] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.120593] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.120985] NET: Registered protocol family 1
[ 0.121452] standby_mode = 1.
[ 0.121680] wakeup src cnt is : 3.
[ 0.121820] pmu1_enable = 0x1.
[ 0.121940] pmux_id = 0x1.
[ 0.122172] config_pmux_para: script_parser_fetch err.
[ 0.122296] pmu2_enable = 0x0.
[ 0.122423] add_sys_pwr_dm: get ldo name failed
[ 0.122651] add_sys_pwr_dm: get ldo name failed
[ 0.122774] add_sys_pwr_dm: get ldo name failed
[ 0.122897] add_sys_pwr_dm: get ldo name failed
[ 0.123125] add_sys_pwr_dm: get ldo name failed
[ 0.123248] add_sys_pwr_dm: get ldo name failed
[ 0.123474] add_sys_pwr_dm: get ldo name failed
[ 0.123598] add_sys_pwr_dm: get ldo name failed
[ 0.123720] add_sys_pwr_dm: get ldo name failed
[ 0.123947] add_sys_pwr_dm: get ldo name failed
[ 0.124068] after inited: sys_mask config = 0x0.
[ 0.124291] dynamic_standby enalbe = 0x0.
[ 0.124462] sunxi_reg_init enter
[ 0.126525] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.126818] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.127135] msgmni has been set to 56
[ 0.128317] io scheduler noop registered
[ 0.128454] io scheduler deadline registered
[ 0.128654] io scheduler cfq registered (default)
[ 0.129271] [DISP]disp_module_init
[ 0.129786] cmdline,disp=
[ 0.130184] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[ 0.130534] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[ 0.131503] [DISP] lcd_clk_config,line:886:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[ 0.132966] [DISP]disp_module_init finish
[ 0.133477] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 0.133936] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 0.134173] sw_uart_pm()890 - uart0 clk is already enable
[ 0.134307] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 0.247778] console [ttyS0] enabled
[ 0.737814] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[ 0.745700] spi spi0: master is unqueued, this is deprecated
[ 0.753808] Failed to alloc md5
[ 0.757463] eth0: Use random mac address
[ 0.762122] usbcore: registered new interface driver catc
[ 0.768378] usbcore: registered new interface driver kaweth
[ 0.774700] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[ 0.783272] usbcore: registered new interface driver pegasus
[ 0.789803] usbcore: registered new interface driver rtl8150
[ 0.796290] usbcore: registered new interface driver asix
[ 0.802556] usbcore: registered new interface driver cdc_ether
[ 0.809180] usbcore: registered new interface driver cdc_eem
[ 0.815721] usbcore: registered new interface driver dm9601
[ 0.822081] usbcore: registered new interface driver smsc75xx
[ 0.828731] usbcore: registered new interface driver smsc95xx
[ 0.835257] [DISP] disp_lcd_pwm_enable,line:1021:pwm device hdl is NULL
[ 0.843015] usbcore: registered new interface driver gl620a
[ 0.849351] usbcore: registered new interface driver net1080
[ 0.855901] usbcore: registered new interface driver plusb
[ 0.862163] usbcore: registered new interface driver rndis_host
[ 0.868983] usbcore: registered new interface driver cdc_subset
[ 0.875716] usbcore: registered new interface driver zaurus
[ 0.882171] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 0.890577] usbcore: registered new interface driver int51x1
[ 0.897114] usbcore: registered new interface driver kalmia
[ 0.903471] usbcore: registered new interface driver ipheth
[ 0.909918] usbcore: registered new interface driver sierra_net
[ 0.916652] usbcore: registered new interface driver cx82310_eth
[ 0.923594] usbcore: registered new interface driver cdc_ncm
[ 0.930052] usbcore: registered new interface driver lg-vl600
[ 0.936686] usbcore: registered new interface driver qmi_wwan
[ 0.943549] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.971131] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.980494] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[ 0.989127] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[ 1.010037] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[ 1.016821] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.024598] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.032841] usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.041277] usb usb1: Manufacturer: Linux 3.4.39 ehci_hcd
[ 1.047482] usb usb1: SerialNumber: sunxi-ehci
[ 1.053225] hub 1-0:1.0: USB hub found
[ 1.057525] hub 1-0:1.0: 1 port detected
[ 1.062594] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.089650] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 1.098627] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 2
[ 1.107320] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[ 1.174098] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.181867] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.189997] usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 1.198140] usb usb2: Manufacturer: Linux 3.4.39 ohci_hcd
[ 1.204353] usb usb2: SerialNumber: sunxi-ohci
[ 1.209963] hub 2-0:1.0: USB hub found
[ 1.214293] hub 2-0:1.0: 1 port detected
[ 1.219417] usbcore: registered new interface driver cdc_acm
[ 1.225859] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.235026] usbcore: registered new interface driver cdc_wdm
[ 1.241433] Initializing USB Mass Storage driver...
[ 1.247153] usbcore: registered new interface driver usb-storage
[ 1.253944] USB Mass Storage support registered.
[ 1.259413] usbcore: registered new interface driver usbserial
[ 1.266023] usbserial: USB Serial Driver core
[ 1.271140] usbcore: registered new interface driver option
[ 1.277468] USB Serial support registered for GSM modem (1-port)
[ 1.284447] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 1.291574] sunxikbd_script_init: key para not found, used default para.
[ 1.300339] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[ 1.307857] i2c /dev entries driver
[ 1.312242] [VFE]cci probe start cci_sel = 0!
[ 1.317218] [VFE]cci probe end cci_sel = 0!
[ 1.322029] [VFE]cci_init end
[ 1.325551] [VFE]Welcome to Video Front End driver
[ 1.331245] [VFE]pdev->id = 1
[ 1.334651] [VFE]dev->mipi_sel = 1
[ 1.338637] [VFE]dev->vip_sel = 1
[ 1.342448] [VFE]dev->isp_sel = 0
[ 1.352354] [VFE_WARN]vfe vpu clock is null
[ 1.357517] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[ 1.365478] [VFE]vfe_init end
[ 1.369790] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.378681] [VFE]probe_work_handle start!
[ 1.383365] [VFE]..........................vfe clk open!.......................
[ 1.391748] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.400719] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.409444] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.418282] [VFE]v4l2 subdev register input_num = 0
[ 1.423928] [VFE]vfe sensor detect start! input_num = 0
[ 1.429842] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[ 1.438371] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[ 1.445540] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 1.452910] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 1.460313] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.469051] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.477814] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.487041] [VFE]V4L2 device registered as video1
[ 1.492418] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.499681] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.510965] [VFE]..........................vfe clk close!.......................
[ 1.519711] [VFE]probe_work_handle end!
[ 1.524273] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.531757] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.538056] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.549954] sunxi_leds_fetch_sysconfig_para leds is not used in config
[ 1.557480] =========script_get_err============
[ 1.564103] usbcore: registered new interface driver usbhid
[ 1.570538] usbhid: USB HID core driver
[ 1.575561] ashmem: initialized
[ 1.579298] logger: created 256K log 'log_main'
[ 1.584942] logger: created 32K log 'log_events'
[ 1.590357] logger: created 32K log 'log_radio'
[ 1.595636] logger: created 32K log 'log_system'
[ 1.606895] asoc: sndcodec <-> sunxi-codec mapping ok
[ 1.612686] *******************Try sdio*******************
[ 1.621126] TCP: cubic registered
[ 1.625001] NET: Registered protocol family 17
[ 1.630254] VFP support v0.3: [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.640507] ThumbEE CPU extension supported.
[ 1.645483] *******************Try sd *******************
[ 1.651613] Registering SWP/SWPB emulation handler
[ 1.658081] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.667140] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.677168] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.688018] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.696613] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.705301] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.714174] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.722981] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:10 UTC (10)
[ 1.733372] ALSA device list:
[ 1.736805] #0: audiocodec
[ 1.740542] Waiting for root device /dev/mmcblk0p2...
[ 1.777498] mmc0: new high speed SDHC card at address aaaa
[ 1.784150] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 1.793829] mmcblk0: p1 p2
[ 1.797839] mmcblk mmc0:aaaa: Card claimed for testing.
[ 1.803921] mmc0:aaaa: SC16G 14.8 GiB
[ 1.808312] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.817174] *******************sd init ok*******************
[ 1.823657] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.832519] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.841079] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.849727] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.858414] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.866975] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.962903] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.974732] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.020978] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.030169] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.041157] devtmpfs: mounted
[ 2.044757] Freeing init memory: 144K
[ 2.163985] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
buildroot login: root
#
#
#
#
# i2cdetect -y
BusyBox v1.29.3 (2019-04-29 11:17:35 CST) multi-call binary.
Usage: i2cdetect -l | -F I2CBUS | [-ya] [-q|-r] I2CBUS [FIRST LAST]
Detect I2C chips
-l List installed buses
-F BUS# List functionalities on this bus
-y Disable interactive mode
-a Force scanning of non-regular addresses
-q Use smbus quick write commands for probing (default)
-r Use smbus read byte commands for probing
FIRST and LAST limit probing range
# i2cdetect -l
# fswebcam -S 10 -d /dev/video1 -p YUV420P -r 640x480 test21.jpg
--- Opening /dev/video1...
[ 33.650171] [VFE]vfe_open
Trying source module v4l2...[ 33.656150] [VFE]..........................vfe clk open!.......................
[ 33.667840] [VFE]vfe_open ok
[ 33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [ 33.681675] [VFE]vfe_close
input was specified, using the f[ 33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [ 33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[ 33.708530] [VFE]vfe_close end
PUT: Invalid argument
#
#
#
#
#
#
附上我的启动信息。有时间帮我分析原因。
离线
看前面的错误, 觉得应该是 没有生成 /dev/videoX 设备,
看log 果然是视频设备没有注册成功:
[ 1.418282] [VFE]v4l2 subdev register input_num = 0
[ 1.423928] [VFE]vfe sensor detect start! input_num = 0
[ 1.429842] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
[ 1.438371] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[ 1.445540] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 1.452910] [VFE_ERR]vfe sensor register check error at input_num = 0
menuconfig 里面有 ov5640 吗? ov5640 与 ov5647 的设备Id 不同的。
离线
不对吧,你往下看,产生了 /dev/video1啊
离线
离线
这就咋玩了,主线生成不了/dev/video* BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。
离线
晕哥小弟 说:这就咋玩了,主线生成不了/dev/video* BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。
有没有试过这个: https://whycan.cn/t_1780.html
我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。
离线
晕哥 说:晕哥小弟 说:这就咋玩了,主线生成不了/dev/video* BSP 虽然生成了/dev/video1但是拍照会发生上面的错误。。。。。。
有没有试过这个: https://whycan.cn/t_1780.html
我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。
用上面的固件, 会有空照片?
离线
晕哥小弟 说:晕哥 说:有没有试过这个: https://whycan.cn/t_1780.html
我这边是得到的消息是 ov5647停产了。而且市面上不好购买。另外我用fswebcam拍照的话,10次大概有1-2次拍照出来是个空照片。
用上面的固件, 会有空照片?
是的,我之前测试的时候发现的,好像拍了十几张的样子,然后有一张图片生成了,但是就是没有图像。后来我就没有管了。换linux了。
离线
晕哥 说:先用 bmp 文件测试, 如果 bmp 文件都正常, 说明缺 png 库.
那可能 buildroot 没有勾上 libpng,
也可能勾上了 libpng,
但是你的 Qt 路径, plugins 子目录下面没有 png 插件,
缺一不可.折腾了两天,终于能显示png了。。。
确实在buildroot里面勾上 png相关支持就可以了,然后要删除掉qt5目录内的.stamp_built .stamp_configured 。
刚开始我没删掉这些,生成的根文件系统还是不支持显示png
感觉自己蠢哭了。。。
我也遇到了这个问题,请问是删除掉“./buildroot-2017.08.1/output/build/qt5base-5.9.1/.stamp_built”,和 “./buildroot-2017.08.1/output/build/qt5base-5.9.1/.stamp_configured” 这两个目录下的文件么,请指教!!
离线
晕哥,有方法可以把主线的uboot.bin + bsp kernel + script.bin 等等打包一个img文件,我烧到flash中,之前好像在论坛里面看到。今天早了很长时间没有找到。
离线
晕哥,有方法可以把主线的uboot.bin + bsp kernel + script.bin 等等打包一个img文件,我烧到flash中,之前好像在论坛里面看到。今天早了很长时间没有找到。
https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)
离线
晕哥,上面你提供的链接,我搜到了,我现在的环境是主线u-boot + BSP 内核。想烧写到spi-flash中。
离线
我其实不需要固件,我需要个步骤。 因为现在我有主线的uboot BSPkernel + boot.scr + script.bin +还有一个rootfs (我不知道是什么格式,是buildroot生成的) 这些我不知道烧写到什么位置。
离线
晕哥,按照自己的理解,和参照网上。自己折腾了下。
https://whycan.cn/t_682.html (licheepi zero BSP 内核(linux3.4) 编译教程)
21、启动不起来,任何串口任何信息都没有。
最近编辑记录 晕哥小弟 (2019-05-16 11:46:59)
离线
晕哥,现在调试LecheePi Zero,屏幕800x480,已按照1楼的配置更改UBOOT,kernel用的800x480的dtb,启动过程中UBOOT屏幕可以显示,linux kernel屏幕不显示并且kernel hang住,请帮忙给些调试建议
kernle停在Console: switching to colour dummy device 80x30位置不动了
U-Boot SPL 2017.01-rc2 (May 17 2019 - 15:06:54)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2 (May 17 2019 - 15:06:54 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2 (May 17 2019 - 15:06:54 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
4021504 bytes read in 218 ms (17.6 MiB/s)
reading sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb
11953 bytes read in 27 ms (431.6 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffeb0 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.14-licheepi-zero (root@muwei) (gcc version 7.9
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] random: fast init done
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33740 r8192 d23604 u6556
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 rootwait root=/dev/mmcw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53512K/64036K available (6144K kernel code, 284K rwdata,)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a473a0 ( 285 kB)
[ 0.000000] .bss : 0xc0a4e6dc - 0xc0a902e4 ( 264 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycless
[ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398s
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000179] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, maxs
[ 0.000430] Console: colour dummy device 80x30
[ 0.000470] Calibrating delay loop (skipped), value calculated using timer f)
[ 0.000486] pid_max: default: 32768 minimum: 301
[ 0.000612] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001273] CPU: Testing write buffer coherency: ok
[ 0.001665] /cpus/cpu@0 missing clock-frequency property
[ 0.001692] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002158] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002338] Hierarchical SRCU implementation.
[ 0.002846] smp: Bringing up secondary CPUs ...
[ 0.002860] smp: Brought up 1 node, 1 CPU
[ 0.002868] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002876] CPU: All CPU(s) started in SVC mode.
[ 0.003681] devtmpfs: initialized
[ 0.006874] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5
[ 0.007170] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[ 0.007198] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007379] pinctrl core: initialized pinctrl subsystem
[ 0.008361] NET: Registered protocol family 16
[ 0.008834] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009885] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint.
[ 0.009982] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.021743] SCSI subsystem initialized
[ 0.021993] usbcore: registered new interface driver usbfs
[ 0.022046] usbcore: registered new interface driver hub
[ 0.022140] usbcore: registered new device driver usb
[ 0.022382] pps_core: LinuxPPS API ver. 1 registered
[ 0.022393] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[ 0.022415] PTP clock support registered
[ 0.022612] Advanced Linux Sound Architecture Driver Initialized.
[ 0.024319] clocksource: Switched to clocksource arch_sys_counter
[ 0.034142] NET: Registered protocol family 2
[ 0.034814] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.034849] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.034872] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.035007] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.035059] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.035282] NET: Registered protocol family 1
[ 0.035967] RPC: Registered named UNIX socket transport module.
[ 0.035989] RPC: Registered udp transport module.
[ 0.035995] RPC: Registered tcp transport module.
[ 0.036001] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.037885] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.043680] NFS: Registering the id_resolver key type
[ 0.043740] Key type id_resolver registered
[ 0.043749] Key type id_legacy registered
[ 0.047928] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[ 0.047952] io scheduler noop registered
[ 0.047960] io scheduler deadline registered
[ 0.048260] io scheduler cfq registered (default)
[ 0.048274] io scheduler mq-deadline registered
[ 0.048282] io scheduler kyber registered
[ 0.048869] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.052104] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.052982] pwm-backlight backlight: backlight supply power not found, usingr
[ 0.147212] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.150251] console [ttyS0] disabled
[ 0.170534] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1A
[ 0.749735] console [ttyS0] enabled
[ 0.756268] panel-simple panel: panel supply power not found, using dummy rer
[ 0.765453] libphy: Fixed MDIO Bus: probed
[ 0.769921] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.776531] ehci-platform: EHCI generic platform driver
[ 0.782032] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.787700] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus 1
[ 0.795653] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.824364] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.831462] hub 1-0:1.0: USB hub found
[ 0.835402] hub 1-0:1.0: 1 port detected
[ 0.839938] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.846239] ohci-platform: OHCI generic platform driver
[ 0.851805] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.858530] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus 2
[ 0.866485] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 0.939323] hub 2-0:1.0: USB hub found
[ 0.943162] hub 2-0:1.0: 1 port detected
[ 0.950768] udc-core: couldn't find an available UDC - added [g_cdc] to lists
[ 0.960467] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 0.967364] sun6i-rtc 1c20400.rtc: RTC enabled
[ 0.971933] i2c /dev entries driver
[ 0.976832] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-000
[ 0.985861] IR NEC protocol handler initialized
[ 0.990400] IR RC5(x/sz) protocol handler initialized
[ 0.995533] IR RC6 protocol handler initialized
[ 1.000061] IR JVC protocol handler initialized
[ 1.004610] IR Sony protocol handler initialized
[ 1.009220] IR SANYO protocol handler initialized
[ 1.013917] IR Sharp protocol handler initialized
[ 1.018628] IR MCE Keyboard/mouse protocol handler initialized
[ 1.024464] IR XMP protocol handler initialized
[ 1.029670] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, no)
[ 1.094359] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:24
[ 1.101308] usbcore: registered new interface driver usbhid
[ 1.106979] usbhid: USB HID core driver
[ 1.112789] NET: Registered protocol family 17
[ 1.117475] Key type dns_resolver registered
[ 1.121869] Registering SWP/SWPB emulation handler
[ 1.134778] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e8900
[ 1.145375] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=80
[ 1.161569] Console: switching to colour frame buffer device 100x30
[ 1.174080] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registere!
[ 1.182839] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.189586] [drm] No driver support for vblank timestamp query.
[ 1.204990] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0743094)
[ 1.212352] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0)
[ 1.220086] fb: switching to sun4i-drm-fb from simple
[ 1.225268] Console: switching to colour dummy device 80x30
离线
晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中
离线
晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中
参考1: https://whycan.cn/t_2388.html (荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡)
参考这个帖子, 一个一个替换文件, 逐步排除问题。
离线
晕哥版主:“buildroot-2017.08.1” 自带的/usr/bin/ts_calibrate,测试时,提示“tslib: Selected device is not a touchscreen (must support ABS and KEY event types)”。 以前手动按装tslib. 设置:export TSLIB_TSDEVICE=/dev/input/event1
就可以找到touchscreen , “buildroot-2017.08.1” 自带的/usr/bin/ts_calibrate设置没有效果。
最近编辑记录 lgliang (2019-05-19 16:31:34)
离线
离线
手动export TSLIB_TSDEVICE=/dev/input/event1 就可以了,我之前把这个命令写入/etc/profile里面没有效果,发现这个电阻触摸屏不是很准确。有时会跳动
最近编辑记录 lgliang (2019-05-19 17:04:13)
离线
手动export TSLIB_TSDEVICE=/dev/input/event1 就可以了,我之前把这个命令写入/etc/profile里面没有效果,发现这个电阻触摸屏不是很准确。有时会跳动
触摸不准是因为驱动没有防抖, 据说 tslib 的插件有防抖功能, 你研究一下.
驱动防抖 @john78 大神已经实现了: https://whycan.cn/t_1259.html#p14265
离线
好的,谢谢晕哥
离线
jianke512 说:晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中参考1: https://whycan.cn/t_2388.html (荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡)
参考这个帖子, 一个一个替换文件, 逐步排除问题。
Hi,
晕哥,此问题解决,参考以下链接的改法OK了,谢谢
https://www.lotlab.org/2018/07/28/record-of-using-licheepi-zero-part-1-u-boot-linux-buildroot/
离线
请问晕哥,buildroot上的mPlayer是使用的软解码还是硬解码。
离线
我跟着教程都走通了,但是挂载emdebian系统后,启动时出错了,emdebian系统是根据https://licheezero.readthedocs.io/zh/latest/系统开发/emdebian.html制作的,错误是Starting init: /etc/init exists but couldn't execute it (error -13)
/bin/sh: 0: Can't open earlyprintk,没找到原因,有了解的能指点下吗。
离线
/etc/init exists but couldn't execute it (error -13)
/etc/init 存在, 但是不能执行, 看文件是不是没有执行属性, 或者依赖的库不存在,还是别的问题?
离线
debian系统的/etc/init是个目录,/etc/init/下也都是一些配置文件,应该与执行权限没关
离线
没指定第一个启动程序,是按帖子上面的配的:#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw rootfstype=ext4 rootdelay=8 vt.global_cursor_default=0"
离线
晕哥 说:jianke512 说:晕哥,在Kernel的log中已确认console=ttyS0,与你在一楼推荐的CONFIG_BOOTARGS设置一样
另外Kernel version 4.14
困扰中参考1: https://whycan.cn/t_2388.html (荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡)
参考这个帖子, 一个一个替换文件, 逐步排除问题。
Hi,
晕哥,此问题解决,参考以下链接的改法OK了,谢谢
https://www.lotlab.org/2018/07/28/record-of-using-licheepi-zero-part-1-u-boot-linux-buildroot/
碰到同样的问题。明天试试。
离线
买了一块licheepi zero ,准备在家试试 主线 uboot +主线 kernel 。我发现kernel 的提交记录都是两年前的,是不是太老了。如果想玩是不是可以用最新的kernel 5.几版本好像。
离线
4.13/4.14 还行, 用来量产了.
离线
root@wuyu-virtual-machine:/disk3/linuxzero/linux-master# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 4591 modules
ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
scripts/Makefile.modpost:94: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1294: recipe for target 'modules' failed
make: *** [modules] Error 2
编译的时候出现这个问题,找了网上好多都没有找到答案
离线
root@wuyu-virtual-machine:/disk3/linuxzero/linux-master# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 4591 modules
ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined!
scripts/Makefile.modpost:94: recipe for target '__modpost' failed
make[1]: *** [__modpost] Error 1
Makefile:1294: recipe for target 'modules' failed
make: *** [modules] Error 2编译的时候出现这个问题,找了网上好多都没有找到答案
貌似找到一个,明天上班再看看能不能解决
离线
晕哥我用linux3.4编译的zImage,然后一直点亮不了板子无法启动内核
0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
284 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading zImage
1866504 bytes read in 129 ms (13.8 MiB/s)
reading sun8i-v3s-blueberrypi-csi-ov2640.dtb
12240 bytes read in 26 ms (459 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dfffcf ... OK
Cannot setup simplefb: node not found
Starting kernel ...
离线
晕哥 说:有没有 /dev/i2cX, /dev/i2c/X 这些设备, 如果没有可能是 menuconfig 上面没有勾选 I2C User Interface
主要是这个错误
--- Opening /dev/video1...
[ 33.650171] [VFE]vfe_open
Trying source module v4l2...[ 33.656150] [VFE]..........................vfe clk open!.......................[ 33.667840] [VFE]vfe_open ok
[ 33.671467] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0
/dev/video1 opened.
No [ 33.681675] [VFE]vfe_close
input was specified, using the f[ 33.686958] [VFE]vfe select input flag = 0, s_input have not be used .
irst.
Unable to query [ 33.697235] [VFE]..........................vfe clk close!.......................
input 0.
VIDIOC_ENUMIN[ 33.708530] [VFE]vfe_close end
PUT: Invalid argument不知道这个是什么造成的
我也是这个问题,请问您解决了吗
离线
我的解决了,你的是自己的板子,还是开发板?
离线
我的解决了,你的是自己的板子,还是开发板?
我的是荔枝派zero,方便加qq(你猜)细聊吗
离线
我的解决了,你的是自己的板子,还是开发板?
大佬方便加或者告诉我一下你的联系方式吗QAQ
离线
已经加了。不一定能解决,你的问题还是贴出来,晕哥都能解决的。我的很多很多的问题都是晕哥帮助解决的。
离线
各位大神,请问我编译uboot报这个错误怎么解决啊,u-boot是https://github.com/Lichee-Pi/u-boot下载的
里面确实没有LicheePi_Zero_defconfig
板子是荔枝派Zero V3s开发板
# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_defconfig
***
*** Can't find default configuration "arch/../configs/LicheePi_Zero_defconfig"!
***
make[1]: *** [LicheePi_Zero_defconfig] Error 1
make: *** [LicheePi_Zero_defconfig] Error 2
最近编辑记录 a1326268019 (2019-08-15 16:46:09)
离线
主线的kernel 是全志的官网弄出来的,还是索智弄出来的呢?还是licheepi zero的作者弄出来的呢?
离线
编译buildroot过程中下载文件太慢了,贼痛苦。
很不易的下载,在此分享下,拷贝到buildroot-2017.08/dl/ 下即可。
https://pan.baidu.com/s/1Pb18GiPxJedcUI-sYFqKQA&shfl=sharepset
离线
请教晕哥及各位大神,为什么我将qt widgets中的例程编译后放 荔枝派zero 中运行时不显示文字。
一开始报未找到/lib/fonts文件夹,后来将buildroot-2017.08/output/target/usr/share/fonts拷贝到荔枝派中,未报任何信息,但还是不显示文字。
离线
勾选这个选项就可以显示了: BR2_PACKAGE_LIBERATION
晕哥,请问 BR2_PACKAGE_LIBERATION 选项在哪啊?
我在buildroot 下 menuconfig 里找不到 BR2_PACKAGE_LIBERATION ,只在.config里找到以下内容。
#
# Fonts
#
BR2_PACKAGE_BITSTREAM_VERA=y
BR2_PACKAGE_CANTARELL=y
BR2_PACKAGE_DEJAVU=y
BR2_PACKAGE_DEJAVU_MONO=y
BR2_PACKAGE_DEJAVU_SANS=y
BR2_PACKAGE_DEJAVU_SERIF=y
BR2_PACKAGE_DEJAVU_SANS_CONDENSED=y
BR2_PACKAGE_DEJAVU_SERIF_CONDENSED=y
BR2_PACKAGE_FONT_AWESOME=y
BR2_PACKAGE_GHOSTSCRIPT_FONTS=y
BR2_PACKAGE_INCONSOLATA=y
BR2_PACKAGE_LIBERATION=y
BR2_PACKAGE_LIBERATION_MONO=y
BR2_PACKAGE_LIBERATION_SANS=y
BR2_PACKAGE_LIBERATION_SERIF=y
离线
谢谢解答!
搞了好几天,还去重新移植qt5,结果还是只要将fonts下子目录中的字体文件移动到fonts目录下就能显示文字了。
离线
大家好!!請教各位大佬!! 本人用A33-Vstar開發板,想选通ov5640,但出現以下問題.
同sys_config.fex setting
開啟
--- I2C support
[x] I2C device interface
离线
最前面 axp22_dldo3 创建 debugfs 出错了, 有没有影响?
改為以下. 但都出現問題
vip_dev0_iovdd = ""
vip_dev0_avdd = ""
vip_dev0_dvdd = ""
离线
用逻辑分析仪抓 i2c 和 camera 的数据,看有什么情况
离线
用逻辑分析仪抓 i2c 和 camera 的数据,看有什么情况
我發現 DOVDD-CSI 無 2.8V, AVDD-CSI 無 2.8V, DVDD18V-CSI 無1.8V, 是什麼原因?
离线
电源有问题
是否關 axp22_dldo3 创建 debugfs 出错了問題?
离线
不排除, 有可能的.
請問有冇解決方法!!因為找了很多網,都找不到解決方法
离线
我用win10的subsystem编译出现了这个错误,似乎是wsl内部IPC实现的问题
一会儿换用doker编译看看,可以的话我上传个编译用的docker镜像
fakeroot, while creating message channels: Function not implemented This may be due to a lack of SYSV IPC support. fakeroot: error while starting the `faked' daemon.
离线
哪位大神直到:
我的usb 插到荔枝派zero里,不工作。
USB 热插拔不起作用.pdf
离线
git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y 这条指令下载4.13y文件6个多G正常吗?
离线
我这里用 du -sh linux/ 命令显示 4 G 左右,
6G 可能是空间占用吧, 应该是正常的。
离线
我这里用 du -sh linux/ 命令显示 4 G 左右,
6G 可能是空间占用吧, 应该是正常的。
哦哦我以为有问题,这个还不能断点续传是吧。下载一点就中断了每次从头开始
离线
哦哦我以为有问题,这个还不能断点续传是吧。下载一点就中断了每次从头开始
墙内访问 github 是有这个问题, 最好是凌晨下载,速度飞快。
离线
墙内访问 github 是有这个问题, 最好是凌晨下载,速度飞快。
谢谢大佬的指点
离线
这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd
这里下载的文件按照步骤烧写到SD卡,V3S无法启动,出现 Starting init: /sbin/init exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
Rebooting in 5 seconds..
这种错误,什么原因呢?
离线
好长贴,翻死我了,下次继续来翻
离线
你这个咋跟官方介绍的不一样呢?是因为官方的是最新的编译方式吗?我的板子是最新买的,按你的编译过程,烧进去,跑步起来,串口也没信息。如果,烧lichee_zero_test_Debian_LXDE,就可以跑起来,说明硬件没问题。可能是编译哪里不对。晕哥,能帮我分析下吗?
离线
请教下,这是为什么?
17648] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.826401] *******************sd init ok*******************
[ 1.832989] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.841895] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.851727] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.860402] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.869054] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.877799] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.896177] *******************Try sdio*******************
[ 1.905705] *******************Try sd *******************
[ 1.915233] *******************Try mmc*******************
[ 1.967081] *******************Try sdio*******************
[ 1.977772] *******************Try sd *******************
[ 1.985450] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.996146] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.005425] *******************Try mmc*******************
[ 2.012949] EXT4-fs (mmcblk0p2): couldn't mount RDWR because of unsupported optional features (400)
[ 2.033832] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 2.043468] Backtrace:
[ 2.046441] [<c00133a4>] (dump_backtrace+0x0/0x104) from [<c03a7b7c>] (dump_stack+0x18/0x1c)
[ 2.056035] r6:c05e24f0 r5:c303b024 r4:c303b024 r3:00000001
[ 2.062918] [<c03a7b64>] (dump_stack+0x0/0x1c) from [<c03a7f4c>] (panic+0x78/0x1bc)
[ 2.071651] [<c03a7ed4>] (panic+0x0/0x1bc) from [<c0531d5c>] (mount_block_root+0x248/0x280)
[ 2.081144] r3:c3023efc r2:c04c4e7a r1:c3023f30 r0:c04aae7e
[ 2.088007] r7:c04aaee2
[ 2.091061] [<c0531b14>] (mount_block_root+0x0/0x280) from [<c0531dec>] (mount_root+0x58/0x6c)
[ 2.100850] [<c0531d94>] (mount_root+0x0/0x6c) from [<c0531f30>] (prepare_namespace+0x130/0x190)
[ 2.110826] r5:c055015d r4:c05e1364
[ 2.115149] [<c0531e00>] (prepare_namespace+0x0/0x190) from [<c053197c>] (kernel_init+0x174/0x1b4)
[ 2.125317] r5:c0550120 r4:00000007
[ 2.129643] [<c0531808>] (kernel_init+0x0/0x1b4) from [<c0031fd4>] (do_exit+0x0/0x638)
[ 2.138654] r9:00000000 r8:00000000 r7:00000013 r6:c0031fd4 r5:c0531808
[ 2.146596] r4:00000000
[ 2.149851] Rebooting in 5 seconds..
[ 7.154200] Restarting Linux version 3.4.39 (he@he) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #55 Thu Dec 12 16:12:04 CST 2019
[ 7.154212]
离线
#282 楼的错误我也遇到多次,在主线上没有遇到,在3.4 上遇到。 我不知道哪里下载的3.4 和 这个论坛里面一个3.4 的版本有差异。我用论坛3.4的配置,结果Menuconfig 一堆的问题。后来重新下载论坛的3.4,按照指南操作就没有遇到#282的问题。
离线
mark
离线
编译uboot出现上面的错误,在下小白,刚入手荔枝派ZERO,请教晕哥
离线
sudo apt-get install device-tree-compiler
提示缺啥装啥就行
@mcu1234mcu
搞定了,谢谢
离线
按照论坛里的教程:
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卡第二个分区目录
在V3S ZERO开发板上运行后,出现如下情况:
[ 1.391582] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.401860] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.552817] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[ 1.567509] EXT4-fs (mmcblk0p2): recovery complete
[ 1.577550] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.585719] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.594166] devtmpfs: mounted
[ 1.598397] Freeing unused kernel memory: 1024K
[ 1.613776] Starting init: /sbin/init exists but couldn't execute it (error -5)
[ 1.623757] Starting init: /bin/sh exists but couldn't execute it (error -5)
[ 1.630930] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 1.645087] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero #1
[ 1.652298] Hardware name: Allwinner sun8i Family
[ 1.657036] [<c010e514>] (unwind_backtrace) from [<c010b1b8>] (show_stack+0x10/0x14)
[ 1.664779] [<c010b1b8>] (show_stack) from [<c065e5a4>] (dump_stack+0x88/0x9c)
[ 1.672001] [<c065e5a4>] (dump_stack) from [<c011b48c>] (panic+0xdc/0x248)
[ 1.678875] [<c011b48c>] (panic) from [<c06700ec>] (kernel_init+0x100/0x110)
[ 1.685919] [<c06700ec>] (kernel_init) from [<c0107538>] (ret_from_fork+0x14/0x3c)
[ 1.693492] Rebooting in 5 seconds..
板子启动不了?是什么情况?
如果把第二步改一下:
4) 建立第二个分区,大小100M,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录
第二个分区改成100M,就可以正常启动。200M就不行了,是什么问题呢?
遇到同样问题,该如何解决?
离线
你的根文件系统出问题了, 换张卡试一试.
离线
你的根文件系统出问题了, 换张卡试一试.
好的,我换张卡试试看
离线
换了张SD可以了,但是按照
1) 删除TF卡所有分区
2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
sudo tar xvf output/images/rootfs.tar -C /media/bao/rootfs
这样子烧写到SD卡
偶尔几次就又启动不了,偶尔几次又可以
离线
你把rootfs文件系统写坏了吗? 或者再换一张卡试一试。
离线
各位老大,我刷了V3s_TFCard.7z,我是一体的板子,用了_dock 设备树,可是网卡还是没看到,是什么情况呀?
是dts文件还要做修改吗?请不吝赐教。
log:
U-Boot SPL 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
4016104 bytes read in 634 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a37b00 ( 223 kB)
[ 0.000000] .bss : 0xc0a3ebec - 0xc0a8153c ( 267 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000193] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000426] Console: colour dummy device 80x30
[ 0.000464] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000480] pid_max: default: 32768 minimum: 301
[ 0.000610] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000624] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001225] CPU: Testing write buffer coherency: ok
[ 0.001606] /cpus/cpu@0 missing clock-frequency property
[ 0.001630] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002066] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002239] Hierarchical SRCU implementation.
[ 0.002732] smp: Bringing up secondary CPUs ...
[ 0.002747] smp: Brought up 1 node, 1 CPU
[ 0.002757] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002764] CPU: All CPU(s) started in SVC mode.
[ 0.003531] devtmpfs: initialized
[ 0.006677] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006973] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006999] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007167] pinctrl core: initialized pinctrl subsystem
[ 0.008048] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[ 0.008190] NET: Registered protocol family 16
[ 0.008677] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009802] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009819] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023331] SCSI subsystem initialized
[ 0.023635] usbcore: registered new interface driver usbfs
[ 0.023704] usbcore: registered new interface driver hub
[ 0.023803] usbcore: registered new device driver usb
[ 0.024055] pps_core: LinuxPPS API ver. 1 registered
[ 0.024068] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024093] PTP clock support registered
[ 0.024322] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026178] clocksource: Switched to clocksource arch_sys_counter
[ 0.036999] NET: Registered protocol family 2
[ 0.037589] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037623] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037647] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037772] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037820] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038043] NET: Registered protocol family 1
[ 0.038633] RPC: Registered named UNIX socket transport module.
[ 0.038653] RPC: Registered udp transport module.
[ 0.038659] RPC: Registered tcp transport module.
[ 0.038664] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040625] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049604] NFS: Registering the id_resolver key type
[ 0.049659] Key type id_resolver registered
[ 0.049666] Key type id_legacy registered
[ 0.049715] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.051190] random: fast init done
[ 0.053994] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.054019] io scheduler noop registered
[ 0.054028] io scheduler deadline registered
[ 0.054276] io scheduler cfq registered (default)
[ 0.054290] io scheduler mq-deadline registered
[ 0.054298] io scheduler kyber registered
[ 0.058664] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127674] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.130946] console [ttyS0] disabled
[ 0.151221] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.741916] console [ttyS0] enabled
[ 0.750108] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.756757] m25p80: probe of spi32766.0 failed with error -2
[ 0.762967] libphy: Fixed MDIO Bus: probed
[ 0.767734] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.773529] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.779313] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.785307] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[ 0.794892] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.800586] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.807816] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.813469] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.820693] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.825653] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.832628] libphy: stmmac: probed
[ 0.837960] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.844499] ehci-platform: EHCI generic platform driver
[ 0.850145] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.855767] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.863738] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.896194] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.903449] hub 1-0:1.0: USB hub found
[ 0.907395] hub 1-0:1.0: 1 port detected
[ 0.911889] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.918189] ohci-platform: OHCI generic platform driver
[ 0.923762] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.930493] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.938454] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.011305] hub 2-0:1.0: USB hub found
[ 1.015145] hub 2-0:1.0: 1 port detected
[ 1.022794] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.032379] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.041390] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.048300] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.052851] i2c /dev entries driver
[ 1.057877] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.067389] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.136223] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[ 1.196204] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[ 1.202595] usbcore: registered new interface driver usbhid
[ 1.208266] usbhid: USB HID core driver
[ 1.214142] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.222206] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.230865] NET: Registered protocol family 17
[ 1.235451] Key type dns_resolver registered
[ 1.239988] Registering SWP/SWPB emulation handler
[ 1.251716] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.262392] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.278762] Console: switching to colour frame buffer device 100x30
[ 1.291196] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.299828] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.311262] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.317113] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.325057] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.334326] hub 3-0:1.0: USB hub found
[ 1.338495] mmc0: new high speed SDHC card at address b368
[ 1.344629] hub 3-0:1.0: 1 port detected
[ 1.348840] mmcblk0: mmc0:b368 CBADS 30.0 GiB
[ 1.355532] using random self ethernet address
[ 1.360101] using random host ethernet address
[ 1.364963] mmcblk0: p1 p2
[ 1.369819] usb0: HOST MAC 02:51:3b:c0:fe:f4
[ 1.374141] usb0: MAC c2:86:96:e9:19:df
[ 1.378164] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.385642] g_cdc gadget: g_cdc ready
[ 1.392015] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.400718] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:17:46 UTC (1066)
[ 1.409260] vcc5v0: disabling
[ 1.412238] ALSA device list:
[ 1.415201] #0: V3s Audio Codec
[ 1.420572] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.429785] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.440045] mmc1: new high speed SDIO card at address 0001
[ 1.555346] EXT4-fs (mmcblk0p2): recovery complete
[ 1.562454] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.570666] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.578269] devtmpfs: mounted
[ 1.582532] Freeing unused kernel memory: 1024K
[ 1.685800] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
buildroot login:
最近编辑记录 jengy (2020-03-30 19:42:02)
离线
以太网功能正常!设备树和驱动都已经开启以太网了。
@晕哥 我用了你发的 V3s_TFCard,为什么我的网卡在登录后用 ifconfig 命令没看到。
u-boot启动日志如下:
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
4016104 bytes read in 634 ms (6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
离线
嗯,找到网卡了,谢谢!
离线
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
# ls
analogclock lib media root tmp
bin lib32 mnt run usr
dev linuxrc opt sbin var
etc lost+found proc sys
# ./analogclock -platform linuxfb
-/bin/sh: ./analogclock: Permission denied
#
在运行QT文件的时候报错 Permission denied
请问是什么原因呢?
离线
没有执行属性吧, 试一试 chmod +x analogclock
离线
没有执行属性吧, 试一试 chmod +x analogclock
谢谢,按照你的方式已经可以了!
离线
多谢分享、大佬,请问怎么启动有线网络?
离线
搞了半天没起来,学习中感谢楼主
离线
系统刷完后大部分时间无法启动,其少数断电后可以起来,但是系统起来后有时出现系统加载中途死机或无限重启的情况,有时启动后几分钟系统出现死机的情况
离线
是的,都没理解这句话,谢谢各位
离线
请问串口控制台是ttyS0,而与SDC0引脚是复用的,从TF卡启动,控制台与TF卡都同时工作正常吗?
离线
请问串口控制台是ttyS0,而与SDC0引脚是复用的,从TF卡启动,控制台与TF卡都同时工作正常吗?
只能二选一。
离线
只能二选一。
那为什么看到评论中的打印,控制台工作正常,TF卡文件系统分区挂载也正常呢?不大明白
最近编辑记录 grantho (2020-05-10 12:19:25)
离线
请问有没有32M得sunxi工具
离线
膜拜大佬! 请问一下要如何支持双屏异显示啊?
离线
请教各位大咖,按步骤进行烧录之后,插卡启动,屏幕只出现一张LOGO图,然后图没了,屏幕亮但没内容,LED 在闪,这样是正常的吗?如果不正常,会是哪里出问题,在线等,多谢了
,
‘
离线
编译老是失败,好想下载楼主打包好的镜像,给我个机会
离线
编译u-boot 报错:arch/arm/dts/sun8i-v3s-licheepi-zero.dtb: Warning (simple_bus_reg): Node /soc/interrupt-controller@01c81000 simple-bus unit address format error, expected "1c81000"
重新clone后也是一个样,求救大神
离线
社区主任好,版主好,楼主好,这个启动系统已经建立,同时学到了一些linux的入门操作,谢谢楼主。接下来应该怎么写用户程序?怎么把用户程序加入系统中运行?有没有类似“helloword!"之类的例程详细介绍?翻了半天没发现有相关主题,求相关资源,入门小白也能看懂的。
离线
社区主任好,版主好,楼主好,这个启动系统已经建立,同时学到了一些linux的入门操作,谢谢楼主。接下来应该怎么写用户程序?怎么把用户程序加入系统中运行?有没有类似“helloword!"之类的例程详细介绍?翻了半天没发现有相关主题,求相关资源,入门小白也能看懂的。
写一个简单的 HelloWorld app程序, 用gcc编译,
比如路径是 /opt/helloworld
你创建 /etc/profile.d/app 文件
添加一行: /opt/helloworld
就能开机执行了.
离线
感觉这个站还比较靠谱些,其他地方找资料好少
离线
刚买了这个板子,学习一下你的经验。很有用,谢谢了。
离线
这个F1C100S能不能用SD卡烧录SPI NAND啊
离线
对于buildroot,翻了又翻。 一直不能理解,到底需要勾选哪些(除了 cpu 和 工具链 必配置之外的)。 百度找的相关资料也描述的不多。这块 有没有好的资料推荐。
离线
不能执行 /sbin/init 。 启动的时候,请问是什么情况。
离线
是不是已经被勾选了, 看下 output/target/usr/bin 目录, 有没有 ts_xxxx 文件.
buildroot 版本多少合适呢?
离线
第一次接触V3S,想自己编译uboot,内核和文件系统,然后烧到TF卡中。这篇文章正好是需要的,学习了!
离线
刚入门这个荔枝派zero,把linux源码、设备树编译好了,那个跟文件系统是真的难受。。。求讲解视频
离线
根文件系统编译需要从网络上下载其他资源吗??进度条一直卡着,等待很久才跳出去,死活下载不了。哎。
离线
根文件系统的版本:buildroot-2017.08.1.tar.gz ubantu用的是16的版本 ,编译的时候下载很多资源 例如uclibc 等等,进度条不走,可以把获取源文件的网址换成一个网速快的嘛?
离线
根文件系统的版本:buildroot-2017.08.1.tar.gz ubantu用的是16的版本 ,编译的时候下载很多资源 例如uclibc 等等,进度条不走,可以把获取源文件的网址换成一个网速快的嘛?
建议在vultr的日本vps上面编译, 没有进度条问题,可以按时长租用,销毁实例停止收费:
https://whycan.cn/t_3759.html
https://whycan.cn/t_3884.html
其他的不方便多说。
离线
这里的内容下载下来试试看,希望可以解决啊
离线
写的很详细真好,新手都能照搬操作下来,什么时候能出一个烧写SPIFLASH的教程就好了,期待!
离线
好资料,这里的内容下载下来试试看,谢谢!
离线
刚刚入手zero dock,好好读了一下,受益匪浅
离线
这里的内容下载下来试试看,希望可以解决啊
离线
但是lcd上出现了用户登陆提示,这种情况你把 uboot,设备树, Linux都用我上面写的。
log跑屏幕上去这个是在哪里配置的,我现在还没找到,如果你找到麻烦跟帖一下。
你好,请问log跑到屏幕上这个问题您解决了吗?
离线
想把Vrtc 和其它3.3V分开,找不到J12和R6,求荔枝派Zero V3s开发板的PCB丝印图,多谢先!
离线
好不容易把串口调试通了,但是发现串口波特率设置高了(比如115200)就不能通信了,怎么让高频率的 也能用,请教大神指点
离线
又一个入坑的重头开始炒作业
离线
这个上手教程贴有更新么?看起来还是3年前的了
离线
感谢分享,亲测成功运行,可以扫描到wifi的SSID了,验证了硬件没问题,回头会测试一下是否可以连接并上网!
@晕哥
晕哥这次我终于调试好v3s的esp8089的驱动了呢
(1)下载源码 https://github.com/al177/esp8089
修改Makefile,修改如下的内容:
KVERS_UNAME = 4.13.16-licheepi-zero+
KVERS_ARCH = arm
KBUILD ?=/home/gec/v3s/linux4.13-y/linux
modules:
$(MAKE) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C $(KBUILD) M=$(SRC_DIR)
然后直接在文件夹内make 即可生成esp8089.ko文件
(2)参考RTL8723bs的配置方法
a.wpa_supplicant-2.6交叉编译
使用wpa_supplicant与wpa_cli相关的工具测试wifi(1)1. libnl交叉编译
下载:https://www.infradead.org/~tgr/libnl/files/libnl-1.1.4.tar.gz解压:tar zxvf libnl-1.1.4.tar.gz
cd libnl-1.1.4/
配置
./configure --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out
删除:(这一步一定不能忘记)
rm lib/libnl.a
可能导致编译报错(编译出错Relocations in generic ELF (EM: 62))
编译:make CC=arm-linux-gnueabihf-gcc AR=aarch64-linux-gnu-ar LD=arm-linux-gnueabihf-ld
make install
(2)openssl-1.0.0交叉编译
下载:https://www.openssl.org/source/old/1.0.1/openssl-1.0.1s.tar.gz解压:tar -xzvf openssl-1.0.0.tart.gz
配置:./config no-asm shared --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out
修改makfile:
(1)修改交叉编译器
CC= gcc
AR= ar $(ARFLAGS) r
RANLIB= /usr/bin/ranlib
NM= nm修改为:
CC=arm-linux-gnueabihf-gcc
AR= arm-linux-gnueabihf-ar $(ARFLAGS) r
RANLIB= arm-linux-gnueabihf-gcc-ranlib
NM= arm-linux-gnueabihf-gcc-nm
(2)去掉里面的-m64make make install
备注:
no-asm是在交叉编译过程中不使用汇编代码代码加速编译过程.原因是它的汇编代码是对arm格式不支持的。我试过了,如果没有这个参数,你的交叉编译一定出错。shared生成动态连接库。prefix=路径 就是你的安装目录。3. wpa_supplicant交叉编译
下载:http://hostap.epitest.fi/releases/wpa_supplicant-2.6.tar.gz
解压:tar -zxvf wpa_supplicant-2.6.tar.gz
cd wpa_supplicant-2.6/wpa_supplicant拷贝配置:
cp defconfig .config修改.config
(-O后面不能有空格)
CC=arm-linux-gnueabihf-gcc -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib
CFLAGS += -I/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/include
LIBS += -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/libmakefile修改:(这里是为了生成静态链接的bin文件)
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
$(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
@$(E) " LD " $@修改为
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
$(Q)$(LDO) --static $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS) -lm -lpthread
@$(E) " LD " $@wpa_cli: $(OBJS_c)
$(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
@$(E) " LD " $@修改为
wpa_cli: $(OBJS_c)
$(Q)$(LDO) --static $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
@$(E) " LD " $@编译:
make
即可生成静态链接的wpa_supplicant/wpa_cli工具,不需要依赖其他的库文件。工具wpa_cli ,wpa_passphrase,wpa_supplicant拷贝进开发板的/bin 目录
三,在开发板中设置
(1)insmod esp8089.ko然后输入ifconfig wlan0 up命令启动wlan0
(3)建立 /etc/wpa_supplicant.conf 文件:
#可有可无,没有的话无法用wpa_cli terminate来关闭wpa_supplicant
ctrl_interface=/var/run/wpa_supplicant
# 确保只有root用户能读取WPA的配置,可有可无,尤其是在嵌入式设备上
ctrl_interface_group=0
# 使用wpa_supplicant来扫描和选择AP,也可以设置成0或2,但只有1才能正确工作
ap_scan=1
#设置需要链接上的网络信息
network={
ssid="unicompy1F"
scan_ssid=1
key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
pairwise=TKIP CCMP
group=CCMP TKIP WEP104 WEP40
psk="unicomp#38468350"
priority=5
}
(4)输入命令wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
使用这个命令来链接上wifi
测试wlan0: udhcpc -i wlan0补充:运维常用linux命令整理
1.临时添加
1 route add default gw 192.168.1.4
2.永久添加
12 vim /etc/sysconfig/networkGATEWAY=192.168.1.4(5)配置网络ping通外网部分了
一.手动测试是否成功加载网卡驱动,可执行如下命令:ifconfig eth0 192.168.1.218 up
二。以下是在配置好内核以及成功加载网卡的前提下实现能够自动配置网络,能够ping通的步骤
(1)修改 /etc/network/interfaces
即vi /etc/network/interfaces后添加如下语句:
auto lo
iface lo inet loopbackauto wlan0
iface wlan0 inet static
address 192.168.1.218 # 3 你要变化的IP地址
gateway 192.168.1.251 (该网关最好需要设置成跟电脑的网关一致,我这里是 192.168.1.251,跟路由器设置相关)
netmask 255.255.255.0(2)vi /etc/resolv.conf
添加以下语句
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114(3)为了能够实现自动开机设置
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114
可以 vi /etc/init.d/rcS
然后添加以下三句即可:
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver 202.96.134.33" >> /etc/resolv.conf
echo "nameserver 114.114.114" >> /etc/resolv.conf之后就可以直接ping通了!!!
离线
折腾到后半夜终于正常登录了,但是uboot可以看到lcd有输出,之后一直保持蓝色屏幕,串口后台能登录,请问大佬怎么可以lcdu也能显示出来登录界面?
离线
你好,我直接写入你发布的文件TFCard.7z总是不断重启,换了2张卡也一样。
下面是我的启动信息
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
4016104 bytes read in 633 ms (6.1 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 27 ms (426.8 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffe1a ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4000000 - 0xff800000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3e89000 ( 62 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a37b00 ( 223 kB)
[ 0.000000] .bss : 0xc0a3ebec - 0xc0a8153c ( 267 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000193] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000427] Console: colour dummy device 80x30
[ 0.000465] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000482] pid_max: default: 32768 minimum: 301
[ 0.000608] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000622] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001238] CPU: Testing write buffer coherency: ok
[ 0.001614] /cpus/cpu@0 missing clock-frequency property
[ 0.001637] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002082] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002260] Hierarchical SRCU implementation.
[ 0.002752] smp: Bringing up secondary CPUs ...
[ 0.002768] smp: Brought up 1 node, 1 CPU
[ 0.002777] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002783] CPU: All CPU(s) started in SVC mode.
[ 0.003561] devtmpfs: initialized
[ 0.006709] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007007] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007034] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007201] pinctrl core: initialized pinctrl subsystem
[ 0.008073] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[ 0.008217] NET: Registered protocol family 16
[ 0.008704] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009841] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009859] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.023348] SCSI subsystem initialized
[ 0.023654] usbcore: registered new interface driver usbfs
[ 0.023724] usbcore: registered new interface driver hub
[ 0.023826] usbcore: registered new device driver usb
[ 0.024074] pps_core: LinuxPPS API ver. 1 registered
[ 0.024086] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.024109] PTP clock support registered
[ 0.024336] Advanced Linux Sound Architecture Driver Initialized.
[ 0.026198] clocksource: Switched to clocksource arch_sys_counter
[ 0.037042] NET: Registered protocol family 2
[ 0.037624] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.037658] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.037682] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.037807] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.037856] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.038076] NET: Registered protocol family 1
[ 0.038651] RPC: Registered named UNIX socket transport module.
[ 0.038671] RPC: Registered udp transport module.
[ 0.038677] RPC: Registered tcp transport module.
[ 0.038683] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040660] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.049604] NFS: Registering the id_resolver key type
[ 0.049657] Key type id_resolver registered
[ 0.049665] Key type id_legacy registered
[ 0.049712] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.051191] random: fast init done
[ 0.054018] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.054043] io scheduler noop registered
[ 0.054051] io scheduler deadline registered
[ 0.054299] io scheduler cfq registered (default)
[ 0.054312] io scheduler mq-deadline registered
[ 0.054319] io scheduler kyber registered
[ 0.058665] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.127881] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.131112] console [ttyS0] disabled
[ 0.151384] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.742080] console [ttyS0] enabled
[ 0.750265] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.756919] m25p80: probe of spi32766.0 failed with error -2
[ 0.763133] libphy: Fixed MDIO Bus: probed
[ 0.767882] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.773678] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.779460] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.785453] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[ 0.795037] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.800727] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.807957] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.813611] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.820838] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.825797] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.832770] libphy: stmmac: probed
[ 0.838095] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.844634] ehci-platform: EHCI generic platform driver
[ 0.850276] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.855897] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.863874] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.896215] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.903461] hub 1-0:1.0: USB hub found
[ 0.907419] hub 1-0:1.0: 1 port detected
[ 0.911904] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.918198] ohci-platform: OHCI generic platform driver
[ 0.923767] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.930496] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.938456] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.011323] hub 2-0:1.0: USB hub found
[ 1.015160] hub 2-0:1.0: 1 port detected
[ 1.022813] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.032402] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.041418] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.048325] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.052877] i2c /dev entries driver
[ 1.057905] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.067416] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.136247] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[ 1.186271] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.196228] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[ 1.202628] usbcore: registered new interface driver usbhid
[ 1.208282] usbhid: USB HID core driver
[ 1.213010] mmc0: new high speed SDHC card at address aaaa
[ 1.219288] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[ 1.225830] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.233919] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.240418] mmcblk0: p1 p2
[ 1.248541] NET: Registered protocol family 17
[ 1.253107] Key type dns_resolver registered
[ 1.257653] Registering SWP/SWPB emulation handler
[ 1.267152] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[ 1.277839] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.293997] Console: switching to colour frame buffer device 100x30
[ 1.306476] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.315054] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.326576] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.332346] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.341491] hub 3-0:1.0: USB hub found
[ 1.345356] hub 3-0:1.0: 1 port detected
[ 1.350673] using random self ethernet address
[ 1.355163] using random host ethernet address
[ 1.361788] usb0: HOST MAC 36:a3:e9:ea:2b:58
[ 1.366103] usb0: MAC da:14:24:62:2a:9c
[ 1.370110] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.377625] g_cdc gadget: g_cdc ready
[ 1.383985] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.392507] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:08:04 UTC (484)
[ 1.400920] vcc5v0: disabling
[ 1.403898] ALSA device list:
[ 1.406921] #0: V3s Audio Codec
[ 1.414081] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.425191] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 1.462122] EXT4-fs (mmcblk0p2): recovery complete
[ 1.467034] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.475185] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.484913] devtmpfs: error mounting -2
[ 1.489977] Freeing unused kernel memory: 1024K
[ 1.494762] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[ 1.508921] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #46
[ 1.516219] Hardware name: Allwinner sun8i Family
[ 1.520955] [<c010e22c>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[ 1.528701] [<c010af9c>] (show_stack) from [<c0674fd0>] (dump_stack+0x90/0xa4)
[ 1.535927] [<c0674fd0>] (dump_stack) from [<c011b05c>] (panic+0xf0/0x268)
[ 1.542801] [<c011b05c>] (panic) from [<c06870d4>] (kernel_init+0x100/0x110)
[ 1.549846] [<c06870d4>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[ 1.557418] Rebooting in 5 seconds..
离线
切换到主线试试,哈哈
离线
现在有个问题,我看大家的背光脚都是pb4,pb5。因为我这个板子是参照樱桃派画的,背光脚在pb2。跑bsp版本的时候,lcd可以正常亮起来。我不知道,如果切换主线的话,pb2是可以模拟pwm,以实现背光吗?可以给一个思路吗?
离线
现在有个问题,我看大家的背光脚都是pb4,pb5。因为我这个板子是参照樱桃派画的,背光脚在pb2。跑bsp版本的时候,lcd可以正常亮起来。我不知道,如果切换主线的话,pb2是可以模拟pwm,以实现背光吗?可以给一个思路吗?
不行,定时器IO模拟的PWM第一浪费CPU,第二不准。
离线
谢谢晕哥。我自己编译到uboot就不动了
离线
我搞了两天,硬是没搞出来。。。
离线
楼主一开始那个修改文件是增加还是全删除了用您的?
离线
3). 执行编译, 生成文件跟文件系统。 执行编译是在bulildroot目录下执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
这个吗?
离线
3). 执行编译, 生成文件跟文件系统。 执行编译是在bulildroot目录下执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
这个吗?
是的。
这个帖子过时了,建议用这个:
(V3s/V3x/S3/S3L/R11通吃)小智V3x开发板smallwitpi lite u-boot/linux/buildroot测试
https://whycan.com/t_7248.html#p69168
离线
图形界面QT的7寸电容屏有没有成功驱动的镜像的?
离线
晕哥有没有移植过H616的uboot,我用的是香橙派zero2开发板,自己移植uboot一直没成功,头大,可以指点一下吗
离线
我也遇到了5秒重启的问题,全部都是按照教程来的,前几次烧录成功正常启动可以进系统,后来又试了几次一直都有问题,不能理解,我前面整套流程下来至少2次都成功了,后面就出现这个问题,方法一模一样就是不对,我也是醉了
离线
I compile buildroot it error why
freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
#error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
^~~~~
make[5]: *** [Makefile:1915: freadahead.o] Error 1
make[5]: *** Waiting for unfinished jobs....
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
#error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
^~~~~
make[5]: *** [Makefile:1915: fseeko.o] Error 1
make[4]: *** [Makefile:1674: all] Error 2
make[3]: *** [Makefile:1572: all-recursive] Error 1
make[2]: *** [Makefile:1528: all] Error 2
离线
我怎么bulidroot出错?而且tf卡第一个分区挂载不了
离线
我按教程试了一遍,使用tf卡启动,结果lcd没反应,连uart0串口都没识别出来T T
离线
小白发问,想知道为啥官方镜像,8G的TF卡,烧录后可用的内存只有几百兆啊:(
离线
内存几百兆?内存这个概念看来要好好定义一下
小白发问,想知道为啥官方镜像,8G的TF卡,烧录后可用的内存只有几百兆啊:(
离线