Jump to content

sle118

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by sle118

  1. Alright, anyone reading this, don't do it. JUST DON'T. do. It. Don't! Not worth the effort, even to try not to wear an SD card. This have me the opportunity to confirm that the pi zero is a good contender for a portable squeezebox server with hostapd and all, but now I have to scrap and rebuild because this method resulted in a mess of simlink and dependencies. Bottom line is reformat and start from scratch; it will take much less effort overall than trying to salvage what cannot be!
  2. Well, reporting after playing with it for some time. I think this could work when jumping from platform to platform as long as it's on the same version of Armbian. Doing this in my case resulted in missing quite a bit of the update scripts for that platform and a few things were not properly configured. So as an additional step, and to avoid the wear of copying 100gb+ of data back from a full re-install, I ended up mounting the sd card and the latest armbian image on a linux machine and copied from ./ recursively to the sd card. I think this will still not be perfect ** some symlinks were not copied properly (for example I had to apt-get install --reinstall tzdata). @tkaiser I'm thinking that it might have been better to just take a risk of scrapping the sd card and follow your advice! Next time... !
  3. I am trying to setup a logitech squeezebox server on an Orange Pi Zero so that it can be carried around and serve my collection from a large micro-sd card. This is the 3rd iteration of this already (first was given as a gift, 2nd got fried by 12V, and now this one) and in the past I've been using hostapd to connect while away from home. I'd like to explore the possibility of using a Bluetooth Personal Area network, but I am not sure if there is a stack that can achieve this for me. The idea is that I would use bluetooth instead of wifi to connect to the orange pi zero and establish a tcp/ip connection that would allow me to control the server using the phone. This would basically setup an ad-hoc network connection between a phone and the armbian server. Any idea/comment is appreciated. thank you!
  4. @tkaiser I think I made progress here! The little guy seems to be wanting to boot now (woot!). I'm going to try and explore. So far, 2 services failed to start: - Login Service - DHCP Server (this is to be expected, as it was bound to a subnet/network card that isnt there yet) **Edit : the little guy is definitely booting up now, so I'm considering this as resolved!
  5. Posting more progress here in case someone ends up needing the same as myself. I have decided to replace boot and kernel from my SD card using the content of a proper Orange Pi Zero image and it goes like this Download the image of choice Mount the image on a linux machine Mount the SD card on a Linux machine Rename /boot on the original SD card to /boot.bak (just to be safe) Copy the /boot content from the recent image to /boot of the sd card Copy the content of /usr/src from the recent image to /usr/src of the sd card Open file /boot/armbianEnv.txt and grab the uuid identifier from "rootdev" (e.g. fd472eba-571d-4583-8873-97f09353655c) Find the partition name of the sd card that is being changed (e.g. /dev/sdzz) Change the uuid sudo tune2fs /dev/sdzz -U fd472eba-571d-4583-8873-97f09353655c Merge modules to load (/etc/modules or some similar files). Chances are the new image doesn't have the extra modules that had been installed under the previous kernel sync sudo e2fsck -fD /dev/sdd1 sync (just in case) Eject the card and try to boot it up I will report on progress (if any)
  6. Ran e2fsck, and it looks like this something was fixed. # e2fsck -fD /dev/sdd1 e2fsck 1.42.12 (29-Aug-2014) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/sdd1: ***** FILE SYSTEM WAS MODIFIED ***** /dev/sdd1: 193845/7654080 files (0.8% non-contiguous), 26018525/30719744 blocks rebooted and got the same kernel panic
  7. I definitely have another linux box from which I can manipulate images. The sole reason why I am trying to keep that one is that it's my only 128gb sd card and it's 90% full from my compressed music library. Reformatting and re-copying that much data will no doubt introduce wear on that card, which I am trying to avoid. If I were to grab "stuff" from existing images and overwrite what's on the 128gb card, what would it be? Kernel? boot folder? I might just bite the bullet and start from scratch, but it would be best if I could avoid that.
  8. This was after trying to follow the troubleshooting guide. What I have done instead is changing the verbosity level and redirecting the output from the boot to the console. Booting ends with a kernel panic message Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 Note that the environment is setup like this bootargs = console=ttyS0,115200 console=tty1 root= rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=7 storage_type= fdtfile = sun8i-h3-orangepi-pc.dtb Here is the full log. Should I post as "spoilers" or "code" is fine? U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:02:37) DRAM: 512 MiB Failed to set core voltage! Can't set CPU frequency Trying to boot from MMC1 U-Boot 2017.01-armbian (Feb 02 2017 - 03:02:37 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi PC I2C: ready DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 Hit any key to stop autoboot: 0 6944 bytes read in 136 ms (49.8 KiB/s) switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 4939 bytes read in 163 ms (29.3 KiB/s) ## Executing script at 43100000 gpio: pin PL10 (gpio 298) value is 1 gpio: pin PG11 (gpio 203) value is 1 Setting verbosity to 7 ** File not found /boot/.next ** ** Unrecognized filesystem type ** ** File not found .next ** 35384 bytes read in 102 ms (337.9 KiB/s) 4135259 bytes read in 518 ms (7.6 MiB/s) 4754648 bytes read in 731 ms (6.2 MiB/s) ## Loading init Ramdisk from Legacy Image at 43300000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 4135195 Bytes = 3.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Using machid 0x1029 from environment Starting kernel ... [sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 512MB ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1 ion_reserve_select: ion chipid [0x2c00042! ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]! [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.4.113-sun8i (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 [ 0.000000] cma: dma_declare_contiguous(266): ION reserve size should be 4m align! adjust size to 128MBytes [ 0.000000] cma: CMA: reserved 128 MiB at 58000000 [ 0.000000] PERCPU: Embedded 8 pages/cpu @c0f5c000 s11968 r8192 d12608 u32768 [ 0.000000] Kernel command line: console=ttyS0,115200 console=tty1 root= rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=7 storage_type= [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] allocated 1048576 bytes of page_cgroup [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups [ 0.000000] Memory: 512MB = 512MB total [ 0.000000] Memory: 371380k/371380k available, 152908k 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 : 0xe0800000 - 0xff000000 ( 488 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc08d0a9c (8995 kB) [ 0.000000] .init : 0xc08d1000 - 0xc0924ec0 ( 336 kB) [ 0.000000] .data : 0xc0926000 - 0xc0995d30 ( 448 kB) [ 0.000000] .bss : 0xc09964e4 - 0xc0ac97c8 (1229 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Additional per-CPU info printed with stalls. [ 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.000000] console [tty1] enabled [ 0.002520] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000) [ 0.002682] pid_max: default: 32768 minimum: 301 [ 0.003101] Security Framework initialized [ 0.003193] AppArmor: AppArmor disabled by boot time parameter [ 0.003675] Mount-cache hash table entries: 512 [ 0.005953] Initializing cgroup subsys cpuacct [ 0.006039] Initializing cgroup subsys memory [ 0.006189] Initializing cgroup subsys devices [ 0.006265] Initializing cgroup subsys freezer [ 0.006336] Initializing cgroup subsys blkio [ 0.006434] Initializing cgroup subsys perf_event [ 0.006669] CPU: Testing write buffer coherency: ok [ 0.006822] ftrace: allocating 24851 entries in 73 pages [ 0.070551] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.070641] [sunxi_smp_prepare_cpus] enter [ 0.070742] Setting up static identity map for 0x4061fbf8 - 0x4061fc50 [ 0.072839] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.080624] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.081006] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.090358] Brought up 4 CPUs [ 0.090536] SMP: Total of 4 processors activated (19200.00 BogoMIPS). [ 0.092163] devtmpfs: initialized [ 0.107760] wakeup src cnt is : 2. [ 0.107982] sunxi pm init [ 0.108330] pinctrl core: initialized pinctrl subsystem [ 0.120188] NET: Registered protocol family 16 [ 0.123563] DMA: preallocated 2048 KiB pool for atomic coherent allocations [ 0.123771] script_sysfs_init success [ 0.125922] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl [ 0.125922] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver [ 0.125922] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.125922] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.125922] script config pll_video to 297 Mhz [ 0.125922] script config pll_de to 864 Mhz [ 0.125922] script config pll_ve to 402 Mhz [ 0.150472] bio: create slab <bio-0> at 0 [ 0.150758] [ARISC] :sunxi-arisc driver v1.04 [ 0.162932] [ARISC] :arisc version: [v0.1.58] [ 0.252151] [ARISC] :sunxi-arisc driver v1.04 startup succeeded [ 0.260990] SCSI subsystem initialized [ 0.261501] usbcore: registered new interface driver usbfs [ 0.261725] usbcore: registered new interface driver hub [ 0.261837] usbcore: registered new device driver usb [ 0.261837] twi_chan_cfg()340 - [twi0] has no twi_regulator. [ 0.261837] twi_chan_cfg()340 - [twi1] has no twi_regulator. [ 0.261837] twi_chan_cfg()340 - [twi2] has no twi_regulator. [ 0.261837] Linux video capture interface: v2.00 [ 0.261837] Advanced Linux Sound Architecture Driver Version 1.0.25. [ 0.262732] cfg80211: Calling CRDA to update world regulatory domain [ 0.262925] NetLabel: Initializing [ 0.262925] NetLabel: domain hash size = 128 [ 0.262925] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.262925] NetLabel: unlabeled traffic allowed by default [ 0.271375] Switching to clocksource arch_sys_counter [ 0.300705] FS-Cache: Loaded [ 0.301328] CacheFiles: Loaded [ 0.328775] NET: Registered protocol family 2 [ 0.356420] IP route cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.357749] TCP established hash table entries: 16384 (order: 5, 131072 bytes) [ 0.358408] TCP bind hash table entries: 16384 (order: 5, 196608 bytes) [ 0.359130] TCP: Hash tables configured (established 16384 bind 16384) [ 0.359195] TCP: reno registered [ 0.359247] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.359346] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.360214] NET: Registered protocol family 1 [ 0.361126] RPC: Registered named UNIX socket transport module. [ 0.361199] RPC: Registered udp transport module. [ 0.361251] RPC: Registered tcp transport module. [ 0.361302] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.361769] Trying to unpack rootfs image as initramfs... [ 0.998129] Freeing initrd memory: 4036K [ 0.999581] hw perfevents: enabled with ARMv7 Cortex_A7 PMU driver, 5 counters available [ 0.999897] sunxi_reg_init enter [ 1.001990] audit: initializing netlink socket (disabled) [ 1.002138] type=2000 audit(1.000:1): initialized [ 1.006507] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.007462] NFS: Registering the id_resolver key type [ 1.008350] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.008429] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.010253] NTFS driver 2.1.30 [Flags: R/W]. [ 1.011046] fuse init (API version 7.18) [ 1.012039] msgmni has been set to 989 [ 1.015445] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 1.015542] io scheduler noop registered [ 1.015591] io scheduler deadline registered [ 1.015772] io scheduler cfq registered (default) [ 1.016720] [DISP]disp_module_init [ 1.017440] cmdline,init_disp= [ 1.017536] cmdline,disp= [ 1.027685] [DISP] Fb_map_kernel_logo,line:932:Fb_map_kernel_logo failed! [ 1.046540] Console: switching to colour frame buffer device 90x36 [ 1.068732] [DISP]disp_module_init finish [ 1.069509] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator. [ 1.069995] sw_uart_get_devinfo()1503 - uart1 has no uart_regulator. [ 1.070530] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator. [ 1.072030] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI [ 1.081555] sw_uart_pm()890 - uart0 clk is already enable [ 1.091019] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n [ 1.210156] console [ttyS0] enabled [ 3.014624] uart1: ttyS1 at MMIO 0x1c28400 (irq = 33) is a SUNXI [ 3.031915] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI [ 3.059748] brd: module loaded [ 3.082827] loop: module loaded [ 3.096669] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator. [ 3.113752] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator. [ 3.132025] spi spi0: master is unqueued, this is deprecated [ 3.149380] spi spi1: master is unqueued, this is deprecated [ 3.165625] tun: Universal TUN/TAP device driver, 1.6 [ 3.180552] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 3.198761] PPP generic driver version 2.4.2 [ 3.213345] PPP BSD Compression module registered [ 3.227840] PPP Deflate Compression module registered [ 3.248199] PPP MPPE Compression module registered [ 3.262713] NET: Registered protocol family 24 [ 3.276744] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.313329] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.331782] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1 [ 3.350938] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000 [ 3.380078] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00 [ 3.397149] hub 1-0:1.0: USB hub found [ 3.410486] hub 1-0:1.0: 1 port detected [ 3.444835] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.463410] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2 [ 3.482470] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000 [ 3.510112] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00 [ 3.527683] hub 2-0:1.0: USB hub found [ 3.541272] hub 2-0:1.0: 1 port detected [ 3.575760] sunxi-ehci sunxi-ehci.3: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.594297] sunxi-ehci sunxi-ehci.3: new USB bus registered, assigned bus number 3 [ 3.613476] sunxi-ehci sunxi-ehci.3: irq 108, io mem 0xf1c1c000 [ 3.650117] sunxi-ehci sunxi-ehci.3: USB 0.0 started, EHCI 1.00 [ 3.667751] hub 3-0:1.0: USB hub found [ 3.681543] hub 3-0:1.0: 1 port detected [ 3.716122] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.734739] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 4 [ 3.754023] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000 [ 3.790117] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00 [ 3.807610] hub 4-0:1.0: USB hub found [ 3.821347] hub 4-0:1.0: 1 port detected [ 3.835967] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 3.872743] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver [ 3.891272] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 5 [ 3.909949] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400 [ 3.985358] hub 5-0:1.0: USB hub found [ 3.999447] hub 5-0:1.0: 1 port detected [ 4.034446] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver [ 4.053171] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 6 [ 4.071886] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400 [ 4.145392] hub 6-0:1.0: USB hub found [ 4.159594] hub 6-0:1.0: 1 port detected [ 4.194608] sunxi-ohci sunxi-ohci.3: SW USB2.0 'Open' Host Controller (OHCI) Driver [ 4.213213] sunxi-ohci sunxi-ohci.3: new USB bus registered, assigned bus number 7 [ 4.231708] sunxi-ohci sunxi-ohci.3: irq 109, io mem 0xf1c1c400 [ 4.305250] hub 7-0:1.0: USB hub found [ 4.319338] hub 7-0:1.0: 1 port detected [ 4.354205] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver [ 4.373034] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 8 [ 4.391620] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400 [ 4.465265] hub 8-0:1.0: USB hub found [ 4.479296] hub 8-0:1.0: 1 port detected [ 4.494261] Initializing USB Mass Storage driver... [ 4.510082] usbcore: registered new interface driver usb-storage [ 4.526850] USB Mass Storage support registered. [ 4.541953] usbcore: registered new interface driver ums-alauda [ 4.558609] usbcore: registered new interface driver ums-cypress [ 4.575210] usbcore: registered new interface driver ums-datafab [ 4.591816] usbcore: registered new interface driver ums_eneub6250 [ 4.608309] usbcore: registered new interface driver ums-freecom [ 4.624571] usbcore: registered new interface driver ums-isd200 [ 4.640378] usbcore: registered new interface driver ums-jumpshot [ 4.656185] usbcore: registered new interface driver ums-karma [ 4.671491] usbcore: registered new interface driver ums-onetouch [ 4.687056] usbcore: registered new interface driver ums-realtek [ 4.702275] usbcore: registered new interface driver ums-sddr09 [ 4.717358] usbcore: registered new interface driver ums-sddr55 [ 4.732177] usbcore: registered new interface driver ums-usbat [ 4.748413] mousedev: PS/2 mouse device common for all mice [ 4.762949] sunxikbd_init failed. [ 4.774389] ls_fetch_sysconfig_para: ls_unused. [ 4.787896] [RTC] WARNING: Rtc time will be wrong!! [ 4.801124] [RTC] WARNING: use *internal OSC* as clock source [ 4.815742] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0 [ 4.831019] i2c /dev entries driver [ 4.844468] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18) [ 4.869823] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19) [ 4.895696] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1a) [ 4.922279] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29) [ 4.949738] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2a) [ 4.977806] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2b) [ 5.006727] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c) [ 5.036542] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4d) [ 5.067166] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4e) [ 5.098924] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x18) [ 5.132149] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x19) [ 5.166847] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x1a) [ 5.203032] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x29) [ 5.240716] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2a) [ 5.279968] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2b) [ 5.320095] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4c) [ 5.361084] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4d) [ 5.402901] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4e) [ 5.444862] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0 [ 5.468778] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf [ 5.496912] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0) [ 5.536680] wdt_enable, write reg 0xf1c20cb8 val 0x00000000 [ 5.559092] timeout_to_interv, line 167 [ 5.579255] interv_to_timeout, line 189 [ 5.599104] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec [ 5.640143] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com [ 5.681150] [cpu_freq] ERR:get cpu extremity frequency from sysconfig failed, use max_freq [ 5.730396] no blue_led, ignore it! [ 5.750478] no led_0, ignore it! [ 5.769021] no led_1, ignore it! [ 5.787141] no led_2, ignore it! [ 5.794092] mmc0: new high speed SDXC card at address 0007 [ 5.795181] mmcblk0: mmc0:0007 SD128 117 GiB [ 5.797665] mmcblk0: p1 [ 5.798909] mmcblk mmc0:0007: Card claimed for testing. [ 5.798936] mmc0:0007: SD128 117 GiB [ 5.896077] no led_3, ignore it! [ 5.912432] no led_4, ignore it! [ 5.928363] no led_5, ignore it! [ 5.943910] no led_6, ignore it! [ 5.959021] no led_7, ignore it! [ 5.975475] usbcore: registered new interface driver usbhid [ 5.993026] usbhid: USB HID core driver [ 6.017835] asoc: sndcodec <-> sunxi-codec mapping ok [ 6.036884] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly! [ 6.069028] [I2S]snddaudio cannot find any using configuration for controllers, return directly! [ 6.100052] [DAUDIO0] driver not init,just return. [ 6.124164] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok [ 6.143973] oprofile: using arm/armv7-ca7 [ 6.159081] u32 classifier [ 6.171990] Performance counters on [ 6.185998] input device check on [ 6.199598] Actions configured [ 6.213175] IPv4 over IPv4 tunneling driver [ 6.228764] TCP: bic registered [ 6.241509] TCP: cubic registered [ 6.254096] TCP: westwood registered [ 6.266666] TCP: highspeed registered [ 6.279031] TCP: hybla registered [ 6.290629] TCP: htcp registered [ 6.301795] TCP: vegas registered [ 6.312995] TCP: veno registered [ 6.324053] TCP: scalable registered [ 6.335621] TCP: lp registered [ 6.346669] TCP: yeah registered [ 6.357768] TCP: illinois registered [ 6.369160] Initializing XFRM netlink socket [ 6.381876] NET: Registered protocol family 10 [ 6.396940] NET: Registered protocol family 17 [ 6.409274] NET: Registered protocol family 15 [ 6.421474] Registering the dns_resolver key type [ 6.435317] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 6.451833] ThumbEE CPU extension supported. [ 6.464632] Registering SWP/SWPB emulation handler [ 6.479459] registered taskstats version 1 [ 6.493943] cmdline,disp= [ 6.505199] [DISP] disp_init_tv,line:539:screen 0 do not support TV TYPE! [ 6.521159] [DISP] bsp_disp_tv_register,line:990:'ptv is null [ 6.535815] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr1<-->device1, type=2, mode=11 [ 6.562769] ths_fetch_sysconfig_para: type err device_used = 1. [ 6.580690] CPU Budget:corekeeper enabled [ 6.593545] CPU Budget:Register notifier [ 6.605629] CPU Budget:register Success [ 6.617415] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0 [ 6.809983] mmc1: new high speed SDIO card at address 0001 [ 6.851755] ALSA device list: [ 6.863354] #0: audiocodec [ 6.874738] #1: sndhdmi [ 6.887579] Freeing init memory: 332K [ 7.029040] systemd-udevd[98]: starting version 215 [ 8.110638] Btrfs loaded [ 19.294627] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 [ 19.294647] [ 19.325483] CPU3: stopping [ 19.335470] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617a00>] (dump_stack+0x20/0x24) [ 19.335470] [<c0617a00>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298) [ 19.335470] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c) [ 19.335470] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74) [ 19.335470] Exception stack(0xd78fbf68 to 0xd78fbfb0) [ 19.335470] bf60: c0f74b38 c094824c 0000000f 00000000 d78fa000 00000003 [ 19.335470] bf80: d78fa000 c0996864 4000406a 410fc075 00000000 d78fbfbc d78fbfc0 d78fbfb0 [ 19.335470] bfa0: c000f2d8 c000f2dc 60010013 ffffffff [ 19.335470] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c) [ 19.335470] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4) [ 19.335470] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c06148fc>] (secondary_start_kernel+0x108/0x12c) [ 19.335470] [<c06148fc>] (secondary_start_kernel+0x108/0x12c) from [<40613f14>] (0x40613f14) [ 19.335470] CPU0: stopping [ 19.335470] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617a00>] (dump_stack+0x20/0x24) [ 19.335470] [<c0617a00>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298) [ 19.335470] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c) [ 19.335470] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74) [ 19.335470] Exception stack(0xc0927f20 to 0xc0927f68) [ 19.335470] 7f20: c0f5cb38 c094824c 0000000f 00000000 c0926000 c09b9008 00000001 ffffffff [ 19.335470] 7f40: c0f59b40 c09024fc 00000000 c0927f74 c0927f78 c0927f68 c000f2d8 c000f2dc [ 19.335470] 7f60: 60010013 ffffffff [ 19.335470] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c) [ 19.335470] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4) [ 19.335470] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c060f520>] (rest_init+0x9c/0xb8) [ 19.335470] [<c060f520>] (rest_init+0x9c/0xb8) from [<c08d18ac>] (start_kernel+0x2f8/0x358) [ 19.335470] CPU1: stopping [ 19.335470] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617a00>] (dump_stack+0x20/0x24) [ 19.335470] [<c0617a00>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298) [ 19.335470] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c) [ 19.335470] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74) [ 19.335470] Exception stack(0xd78bdf68 to 0xd78bdfb0) [ 19.335470] df60: c0f64b38 c094824c 0000000f 00000000 d78bc000 00000001 [ 19.335470] df80: d78bc000 c0996864 4000406a 410fc075 00000000 d78bdfbc d78bdfc0 d78bdfb0 [ 19.335470] dfa0: c000f2d8 c000f2dc 600f0013 ffffffff [ 19.335470] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c) [ 19.335470] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4) [ 19.335470] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c06148fc>] (secondary_start_kernel+0x108/0x12c) [ 19.335470] [<c06148fc>] (secondary_start_kernel+0x108/0x12c) from [<40613f14>] (0x40613f14) [ 19.303603] SMP: failed to stop secondary CPUs [ 19.303603] [hotplug]: cpu(2) try to kill cpu(0) [ 19.303603] [hotplug]: try to kill cpu:0 failed! [ 19.303603] [hotplug]: cpu(2) try to kill cpu(1) [ 19.303603] [hotplug]: try to kill cpu:1 failed! [ 19.303603] [hotplug]: cpu(2) try to kill cpu(3) [ 19.303603] [hotplug]: try to kill cpu:3 failed! [ 19.303603] Rebooting in 10 seconds.. [ 19.303603] Restarting Linux version 3.4.113-sun8i (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 [ 19.303603]
  9. I guess I'll have to mount the sd card on a linux machine and fix the boot section, but I'll need some guidance from someone better qualified than myself as I am not sure where to get the content from I have tried the troubleshooting steps documented for Armbian with no luck. Here is the output from the serial console: U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:02:37) DRAM: 512 MiB Failed to set core voltage! Can't set CPU frequency Trying to boot from MMC1 U-Boot 2017.01-armbian (Feb 02 2017 - 03:02:37 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi PC I2C: ready DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 Hit any key to stop autoboot: 0 => setenv bootargs init=/bin/bash root=/dev/mmcblk0p1 rootwait console=ttyS0,115200 => ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile} ** File not found /boot/dtb/sun8i-h3-orangepi-pc.dtb ** => ext4load mmc 0 0x46000000 /boot/zImage 4754648 bytes read in 726 ms (6.2 MiB/s) => env set fdt_high ffffffff => bootz 0x46000000 - 0x49000000 ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree
  10. I have to report that I am getting the same after doing apt-get upgrade The SD card was reused from a OpiPC that got fried by 12V supply. It was working good until I did the update.
  11. @tkaiser, here is the result of the armbian monitor: http://sprunge.us/IYjM ** Edit: I think I need to reboot before posting this... sorry. Reboting now and will re-execute armbianmonitor ** Edit 2: The little guy is no longer booting. Below is the output from serial. Will try to troubleshoot now.
  12. @jhpadjustable That would explain it! @tkaiser, the logs were uploaded to : http://sprunge.us/djZG ** edit - just noticed that apt-get upgrade had not completed before I uploaded the logs. I had to run apt-get -f install and let it complete to fix some issues. Upgrade is running now and I will report again once it's done. I'll be testing more today; my end goal is to set this little guy as a portable Squeezebox player with the following - hostapd (unlikely that the builtin hardware supports it, so I have some known-to-be-working-chipset wifi dongles available) - Some audio output that is of "good enough" quality (if I'm using an external wifi dongle, I might just purchase a cheap expansion board) The biggest issue right now is that I have to stay connected to serial to issue ifdown/ifup as network doesn't want to automatically get an IP address during the initialization sequence. the log below, starting at 10:02, shows what happens after ifdown eth0;ifup eth0 Apr 28 09:56:21 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 Apr 28 09:56:31 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 Apr 28 09:56:42 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17 Apr 28 09:56:59 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 Apr 28 09:57:11 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 Apr 28 09:57:17 localhost dhclient: No DHCPOFFERS received. Apr 28 09:57:17 localhost rsyslogd-2007: action 'action 17' suspended, next retry is Fri Apr 28 09:58:17 2017 [try http://www.rsyslog.com/e/2007 ] Apr 28 09:57:17 localhost dhclient: No working leases in persistent database - sleeping. Apr 28 10:02:07 localhost systemd[1]: Reloading LSB: Postfix Mail Transport Agent. Apr 28 10:02:07 localhost rsyslogd-2007: action 'action 17' suspended, next retry is Fri Apr 28 10:03:07 2017 [try http://www.rsyslog.com/e/2007 ] Apr 28 10:02:07 localhost postfix/master[1392]: reload -- version 2.11.3, configuration /etc/postfix Apr 28 10:02:07 localhost postfix[5559]: Reloading Postfix configuration...done. Apr 28 10:02:07 localhost systemd[1]: Reloaded LSB: Postfix Mail Transport Agent. Apr 28 10:02:07 localhost dhclient: Killed old client process Apr 28 10:02:08 localhost dhclient: Internet Systems Consortium DHCP Client 4.3.1 Apr 28 10:02:08 localhost dhclient: Copyright 2004-2014 Internet Systems Consortium. Apr 28 10:02:08 localhost dhclient: All rights reserved. Apr 28 10:02:08 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/ Apr 28 10:02:08 localhost dhclient: Apr 28 10:02:08 localhost dhclient: Listening on LPF/eth0/7a:68:b0:c1:78:a4 Apr 28 10:02:08 localhost dhclient: Sending on LPF/eth0/7a:68:b0:c1:78:a4 Apr 28 10:02:08 localhost dhclient: Sending on Socket/fallback Apr 28 10:02:10 localhost dhclient: DHCPRELEASE on eth0 to 192.168.10.1 port 67 Apr 28 10:02:10 localhost dhclient: send_packet: Network is unreachable Apr 28 10:02:10 localhost dhclient: send_packet: please consult README file regarding broadcast address. Apr 28 10:02:10 localhost dhclient: dhclient.c:2331: Failed to send 300 byte long packet over fallback interface. Apr 28 10:02:10 localhost systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd). Apr 28 10:02:10 localhost smbd[5608]: Reloading /etc/samba/smb.conf: smbd. Apr 28 10:02:10 localhost systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd). Apr 28 10:02:11 localhost dhclient: receive_packet failed on eth0: Network is down Apr 28 10:02:11 localhost dhclient: Internet Systems Consortium DHCP Client 4.3.1 Apr 28 10:02:11 localhost dhclient: Copyright 2004-2014 Internet Systems Consortium. Apr 28 10:02:11 localhost dhclient: All rights reserved. Apr 28 10:02:11 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/ Apr 28 10:02:11 localhost dhclient: Apr 28 10:02:11 localhost kernel: [ 2289.272616] gmac0: probed Apr 28 10:02:11 localhost kernel: [ 2289.276591] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00) Apr 28 10:02:11 localhost kernel: [ 2289.293264] ADDRCONF(NETDEV_UP): eth0: link is not ready Apr 28 10:02:11 localhost dhclient: Listening on LPF/eth0/7a:68:b0:c1:78:a4 Apr 28 10:02:11 localhost dhclient: Sending on LPF/eth0/7a:68:b0:c1:78:a4 Apr 28 10:02:11 localhost dhclient: Sending on Socket/fallback Apr 28 10:02:11 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 Apr 28 10:02:14 localhost kernel: [ 2292.270275] PHY: gmac0-0:00 - Link is Up - 100/Full Apr 28 10:02:14 localhost kernel: [ 2292.279319] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Apr 28 10:02:16 localhost ntpd[607]: Listen normally on 6 eth0 fe80::7868:b0ff:fec1:78a4 UDP 123 Apr 28 10:02:16 localhost ntpd[607]: peers refreshed Apr 28 10:02:19 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 Apr 28 10:02:20 localhost dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67 Apr 28 10:02:20 localhost dhclient: DHCPOFFER from 192.168.10.1 Apr 28 10:02:20 localhost dhclient: DHCPACK from 192.168.10.1 Apr 28 10:02:20 localhost systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd). Apr 28 10:02:20 localhost smbd[5689]: Reloading /etc/samba/smb.conf: smbd. Apr 28 10:02:20 localhost systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd). Apr 28 10:02:22 localhost ntpd[607]: Listen normally on 7 eth0 192.168.10.101 UDP 123 Apr 28 10:02:22 localhost ntpd[607]: peers refreshed Apr 28 10:02:22 localhost dhclient: bound to 192.168.10.101 -- renewal in 42084 seconds. Apr 28 10:02:22 localhost systemd[1]: Reloading OpenBSD Secure Shell server. Apr 28 10:02:23 localhost systemd[1]: Reloaded OpenBSD Secure Shell server. Apr 28 10:02:23 localhost systemd[1]: Reloading LSB: Postfix Mail Transport Agent. Apr 28 10:02:23 localhost postfix/master[1392]: reload -- version 2.11.3, configuration /etc/postfix Apr 28 10:02:23 localhost postfix[5759]: Reloading Postfix configuration...done. Apr 28 10:02:23 localhost systemd[1]: Reloaded LSB: Postfix Mail Transport Agent. Apr 28 10:02:24 localhost kernel: [ 2302.410048] eth0: no IPv6 routers present
  13. @tkaiser, thanks for the quick reply. I have hooked up power on from a 3A 5V adapter to the single row connector pins on pin 1+2, hooked up a USB/Serial dongle to the TX/RX/GND pins and connected the board with the old sd card in place. Here is the serial output: U-Boot 2016.09-armbian (Sep 15 2016 - 07:28:57 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi PC I2C: ready DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 Hit any key to stop autoboot: 2 ��� 1 ��� 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 2347 bytes read in 167 ms (13.7 KiB/s) ## Executing script at 43100000 gpio: pin PL10 (gpio 298) value is 1 gpio: pin PG11 (gpio 203) value is 1 57 bytes read in 119 ms (0 Bytes/s) ** File not found /boot/.next ** ** Unrecognized filesystem type ** ** File not found .next ** 36192 bytes read in 490 ms (71.3 KiB/s) 3459162 bytes read in 444 ms (7.4 MiB/s) 5025168 bytes read in 731 ms (6.6 MiB/s) ## Loading init Ramdisk from Legacy Image at 42000000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 3459098 Bytes = 3.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Using machid 0x1029 from environment Starting kernel ... [sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 512MB ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1 ion_reserve_select: ion chipid [0x2004620! ion_reserve_common: ion reserve: [0x56000000, 0x60000000]! Debian GNU/Linux 8 orangesqueeze ttyS0 orangesqueeze login: root I'm preparing to install updates right now. That little guy certainly doesn't feel as snappy as the OpiPC I''ll post a follow up when updates are completed.
  14. A few months ago I dried one of my OPiPC with a 12V power supply and I have not had a chance to try and revive it. So I am looking to migrate the existing 128GB sd card to a OPi Zero. From what I understand, the following would need to be done Mount the SD card (ideally on a linux BOX or VM) Replace script.bin with a suitable file Sync Eject Enjoy Can anyone confirm? Do I need to swap the kernel as well, or is it ok to keep the existing one? As for the script.bin, what's the best way to get one? Download an image and mount it, use fex2bin to generate one? Any help is appreciated. Thank you! *** EDIT: DON'T. DON'T. DON'T. I THOUGHT IT WAS WORKING, BUT ENDED UP REINSTALLING FROM SCRATCH AS THIS IS MUCH LESS EFFORT OVERALL
  15. Has anyone attempted running hostapd on the zero? I have ordered 2 about a month ago and plan on using it as a portable media server with 128Gb micro SD. Thanks!
  16. I used the wrong power adapter this morning on one of my OPI PC... what could go wrong? So far, I noticed that the poor U5 - SY8008B regulator overheated and blew. From the schematics, this seems to be connected to "AVCC" (the H3's PLL and the TV out). U11 isn't outputting anything, but chip select is off. Since this is the USB host, I'm not too surprised. Is it worth trying to reflow a new regulator on ? Wondering...
  17. I haven't configured any network, as I want to use the dongle through hostapd. # ifup wlan0 ifup: interface wlan0 already configured # iw dev wlan0 link Not connected.
  18. Not sure if this is the right place to post, but since instructions on getting hostapd to work were provided here, I'll give it a shot. I am on the orange pi PC dpkg-query -W -f='${Version}\n' linux-jessie-root-orangepipc 5.20 with this dongle which I had lying in a drawer. lsusb Bus 004 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter from the thread below, I understand that there is a patched module and instructions were given to build and install it, which I did http://forum.armbian.com/index.php/topic/749-orange-pi-pc-wireless-module-8192cu I can't use "iw" iw wlan0 info command failed: No such device (-19) but I can scan for networks iwlist wlan0 scanning wlan0 Scan completed : Cell 01 - Address: XX:XX:XX:XX:XX:XX ESSID:"XXXX" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.422 GHz (Channel 3) Encryption key:on Bit Rates:144 Mb/s Extra:rsn_ie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK Quality=20/100 Signal level=100/100 so I am assuming that the dongle is ready for hostapd to hookup. I clone Igor's hostapd repository and ensured I had a successful build, after which I installed the generated deb package https://github.com/igorpecovnik/hostapd This gives me 2 binaries, a "standard" one and a patched one. # hostapd -v hostapd v2.5 User space daemon for IEEE 802.11 AP management, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi> and contributors # hostapd-rt -v hostapd v2.5 User space daemon for IEEE 802.11 AP management, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi> and contributors so I tried running the realtek version of hostapd as built # hostapd-rt hostapd.realtek.conf No drivers enabled Failed to initialize global context no joy, so try the other version # hostapd hostapd.conf Configuration file: hostapd.conf Line 20: unknown configuration item 'noscan' 1 errors found in configuration file 'hostapd.conf' Failed to set up interface with hostapd.conf Failed to initialize interface not good, but let's remove that "noscan" option and see [color=#222222][font="Helvetica Neue", Arial, Verdana, sans-serif][size=4][background=#ffffff]#hostapd -dd hostapd.conf[/size][/font][/color][/background] output: what seems to be the culprit of my issue is that the nl80211 driver that's used when building hostapd is unable to set the dongle to ap mode netlink: Operstate: ifindex=5 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP) nl80211: Set mode ifindex 5 iftype 2 (STATION) nl80211: Failed to set interface 5 to mode 2: -19 (No such device) so command "ip" shows the interface as being at index 5. ip link show wlan0 5: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 00:e0:4c:03:18:be brd ff:ff:ff:ff:ff:ff this makes me wonder if an empty "iw list" is the issue that would need to be fixed here. thanks for the help!
  19. Thanks for the tip. Just to be on the safe side, I re-generated the compile headers (I had not done it after a dist-upgrade) and re-compiled the modules. This still didn't work, so I started looking for other modules that might still be clinging there from failed attempts. find -L /lib/modules/ -name 8192cu.ko | awk '{ print "ls -lt "$1 }' | sh There was another module found so I removed it and now the errors are gone from dmesg. however the end goal was to get hostapd to work and I am unsure if my configuration is good or bad. trying the following command gives an error iw wlan0 info command failed: No such device (-19) but I can scan for networks iwlist wlan0 scanning wlan0 Scan completed : Cell 01 - Address: XX:XX:XX:XX:XX:XX ESSID:"XXXX" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.422 GHz (Channel 3) Encryption key:on Bit Rates:144 Mb/s Extra:rsn_ie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK Quality=20/100 Signal level=100/100 I am using a static address so ifconfig gives me this ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:e0:4c:03:18:be inet addr:192.168.21.1 Bcast:255.255.255.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:543 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 TX bytes:0 (0.0 so I am guessing the dongle is recognized, the driver is loaded and my issue with hostapd belongs to a different thread?
  20. Are there multiple copies of the module in your system? I'm trying to resolve a similar situation, and although I haven't yet succeeded, I noticed this morning that this was the case for me. you can search for the modules by running this command: find -L /lib/modules/ -name 8192cu.ko | awk '{ print "ls -lt "$1 }' | sh
  21. Igor, all, I followed that procedure on an OrangePi PC and for an obscure reason I can't get the module to load. running dmesg shows a log full of messages like this 8192cu: disagrees about version of symbol alloc_etherdev_mqs lsusb Bus 004 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter cat /etc/modprobe.d/blacklist-rtl8192cu.conf blacklist rtl8192cu cat /etc/modprobe.d/8192cu.conf # Disable power management in the 8192cu driver. This works around a bug in # some hardware where the device never wakes back up. # Credit goes to Saqib Razaq (https://github.com/s-razaq) for the fix. # rtw_power_mgnt=0 disables power saving # rtw_enusbss=0 disables USB autosuspend options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 modinfo 8192cu cat /etc/network/interfaces auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet static address 192.168.21.1 netmask 255.255.255.0 can anyone shed some lights on what the issue could be?
  22. Igor, you made another happy person today. I expanded my partition to 128Gb, no fuss, no issue, thanks to these easy instructions.
  23. **** RESOLVED *** the ribbon cable was flipped over.... I have done additional validation on my orangepi pc and tried detecting the i2c devices. Well... I guess no device is detected after all and this could explain why the camera is not responding... Where should I go from there? #i2cdetect -y 0 && i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- and dmesg full of this Sep 1 10:43:59 localhost kernel: [ 8113.947297] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x48, dev addr: 0x5a) Sep 1 10:43:59 localhost kernel: [ 8113.947539] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x48, dev addr: 0x5b) Sep 1 10:43:59 localhost kernel: [ 8113.947779] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x48, dev addr: 0x5c) Sep 1 10:43:59 localhost kernel: [ 8113.948020] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x48, dev addr: 0x5d) Sep 1 10:43:59 localhost kernel: [ 8113.948261] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x48, dev addr: 0x5e) Sep 1 10:43:59 localhost kernel: [ 8113.948499] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x48, dev addr: 0x5f) Sep 1 10:43:59 localhost kernel: [ 8113.948798] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x60)
  24. ***RESOLVED !!*** See picture below. I had reversed the cable on the OrangePi PC ... d'oh.... All, IV been scratching my head on this for a while now and can't get the camera to work on a orange pi pc. I'm trying to experiment with open CV in the OPI to document cases of speeding cars on my street... So you could call this a speeder watching station Any help is appreciated! Here is my camera. Below are the steps I took to get it to work. http://cloud.tapatalk.com/s/57c7a32d7b74f/IMG_20160831_204048.jpg? I have the OrangePi PC running the following version [color=#000080]#uname -a Linux orangesqueeze 3.4.112-sun8i #14 SMP PREEMPT Tue Jul 5 16:28:14 CEST 2016 armv7l GNU/Linux [/color] From the instructions I saw in various places, I opted to load the camera and vfe modules like this [color=#000080]#modprobe gc2035 hres=0 mclk=34 #modprobe vfe_v4l2 [/color] Once the modules were loaded, I tried capturing a picture [color=#000080]#fswebcam --Hflip 1 --rotate 180 -r 640x480 -p YUV420P - > cam640x480_1.jpg --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. Unable to query input 0.[/color] [color=#ff0000]VIDIOC_ENUMINPUT: Invalid argument[/color] Checking dmesg for signs of something going wrong [color=#000080]#dmesg [20856.904847] [VFE]Welcome to Video Front End driver [20856.905540] [VFE]pdev->id = 0 [20856.905561] [VFE]dev->mipi_sel = 0 [20856.905576] [VFE]dev->vip_sel = 0 [20856.905591] [VFE]dev->isp_sel = 0 [20856.911816] [VFE_WARN]vfe vpu clock is null [20856.920117] [VFE_WARN]os_gpio_request failed, gpio_name=, gpio=110, ret=0xfffffff0, -16 [20856.920266] [VFE]..........................vfe clk open!....................... [20856.920317] [ISP] isp platform_id = 5! [20856.920580] [VFE]vfe_init end [20856.930304] [VFE]probe_work_handle start! [20856.930349] [VFE]v4l2 subdev register input_num = 0 [20856.930370] [VFE]vfe sensor detect start! input_num = 0 [20856.930396] [VFE]Find sensor name is "gc2035", i2c address is 78, type is "YUV" ! [20856.930420] [VFE]Sub device register "gc2035" i2c_addr = 0x78 start! [20856.930447] [VFE]v4l2_device_register_subdev return 0 [20856.930465] [VFE]registered sensor subdev is OK! [20856.930481] [VFE]Check sensor! [20856.942619] [VFE]mclk on[/color] [color=#ff0000][20856.998169] [VFE CCI_0 ERR] Status error at addr_8bit = 78, wr_flag = 1, val = 100f0 [20856.998491] [VFE CCI_0 ERR] Status error at addr_8bit = 78, wr_flag = 1, val = 100f0 [20856.998805] [VFE CCI_0 ERR] Status error at addr_8bit = 78, wr_flag = 1, val = 100f0 [20856.998832] [CSI_ERR][GC2035]sensor_read err at sensor_detect! [20856.998851] [CSI_ERR][GC2035]chip found is not an target chip.[/color] [color=#000080][20857.042188] [VFE]mclk off [20857.066364] [VFE]vfe sensor subdev unregister! [20857.066393] [VFE]Sub device register "gc2035" failed! [20857.066413] [VFE_ERR]vfe sensor register check error at input_num = 0 [20857.066931] [VFE]V4L2 device registered as video0 [20857.066996] [VFE]..........................vfe clk close!....................... [20857.067035] [VFE]probe_work_handle end! [20857.075411] [VFE]vfe_open [20857.075443] [VFE]..........................vfe clk open!....................... [20857.075499] [VFE]vfe_open ok [20857.076229] [VFE]vfe_close [20857.076252] [VFE]vfe select input flag = 0, s_input have not be used . [20857.076282] [VFE]..........................vfe clk close!....................... [20857.076330] [VFE]vfe_close end [/color][color=#a9a9a9][21134.927135] rtw_set_encryption [21134.927168] rtw_set_encryption, set group_key, TKIP [21134.927186] set_group_key [21134.929371] SetHwReg8192CU, 5126, RCR= 7000228e[/color][color=#000080] [21713.151828] [VFE]vfe_open [21713.151867] [VFE]..........................vfe clk open!....................... [21713.151933] [VFE]vfe_open ok [21713.152663] [VFE_ERR]input index(0) > dev->dev_qty(1)-1 invalid!, device_valid_flag[0] = 0 [21713.154676] [VFE]vfe_close [21713.154709] [VFE]vfe select input flag = 0, s_input have not be used . [21713.154741] [VFE]..........................vfe clk close!....................... [21713.154793] [VFE]vfe_close end[/color] Was I running the correct gc2035 module? Let's check [color=#000080]#modinfo gc2035 filename: /lib/modules/3.4.112-sun8i/kernel/drivers/media/video/sunxi-vfe/device/gc2035.ko license: GPL description: A low-level driver for GalaxyCore gc2035 sensors author: @lex author: leonardo lontra author: raymonxiu alias: i2c:gc2035 depends: cci,vfe_subdev intree: Y vermagic: 3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 parm: hres:hres=0 (640x480|1280x720|1600x1200 - 15 FPS), hres=1 (800x600|1600x1200 - 10 FPS), hres=2 (320x240|640x480|800x600 - 20 FPS), hres=3 (320x240|352x288|640x480 - 15 FPS) (default=0) (uint) parm: mclk:mclk override (default=0) (uint) parm: frate:frate override (default=0) (uint) [/color] Here is how I setup my fex, and my guess is that there is something wrong there. There are 2 csi sections (csi0 and csi0_para) and I am unsure which one the driver is actually considering. There also seemed to be variations on the pinout that was needed and my guess is that my problem might be there. Unless there is a physical issue with the connector I am using? I bought the connector for the OPI PC after ordering the camera separately and realizing that it could not be connected directly. I am familiar with embedded programming and GPIO (mostly the ESP8266 and arduino platform), but I have not yet put my head around the linux layers around hardware.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines