-
Posts
1791 -
Joined
-
Last visited
Reputation Activity
-
guidol reacted to sfx2000 in [Info] FriendlyARM PCM5102A-Hat with NanoPi Neo under mainline 4.x.x and dev 5.x.x
Nice job, and very well written up.
-
guidol got a reaction from TonyMac32 in [Info] FriendlyARM PCM5102A-Hat with NanoPi Neo under mainline 4.x.x and dev 5.x.x
I did that on a NanoPi Neo with the FriendlyARM PCM5102A Hat
( https://www.friendlyarm.com/index.php?route=product/product&product_id=169 )
using kernel 4.14.87-sunxi and armbian 5.67 (or later would be only 5.65?)
(before that I did use legacy kernel 3.4.x with the PCM510A)
and the armbian-BuildSystem
plus (THANKS to) informations in threads from @dony71 , @Christos, @Valery Rezvyakov
and the the Reference-Threads you could find above
----------------------------------------------------------------------------------------------------------------------------------
BACKUP DTB (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
cp /boot/dtb/sun8i-h3-nanopi-neo.dtb /boot/dtb/sun8i-h3-nanopi-neo.dtb_org
----------------------------------------------------------------------------------------------------------------------------------
CONVERT dtb to dts (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
dtc -I dtb -O dts /boot/dtb/sun8i-h3-nanopi-neo.dtb -o /boot/dtb/sun8i-h3-nanopi-neo.dts
----------------------------------------------------------------------------------------------------------------------------------
EDIT /boot/dtb/sun8i-h3-nanopi-neo.dts
----------------------------------------------------------------------------------------------------------------------------------
nano /boot/dtb/sun8i-h3-nanopi-neo.dts
- change: status from "disabled" to "okay"
----------------------------------------------------------------------------------------------------------------------------------
FROM
i2s@1c22000 { #sound-dai-cells = <0x0>; compatible = "allwinner,sun8i-h3-i2s"; reg = <0x1c22000 0x400>; interrupts = <0x0 0xd 0x4>; clocks = <0x3 0x38 0x3 0x54>; clock-names = "apb", "mod"; dmas = <0x13 0x3 0x13 0x3>; resets = <0x3 0x2b>; dma-names = "rx", "tx"; status = "disabled"; phandle = <0x4e>; };
TO
i2s@1c22000 { #sound-dai-cells = <0x0>; compatible = "allwinner,sun8i-h3-i2s"; reg = <0x1c22000 0x400>; interrupts = <0x0 0xd 0x4>; clocks = <0x3 0x38 0x3 0x54>; clock-names = "apb", "mod"; dmas = <0x13 0x3 0x13 0x3>; resets = <0x3 0x2b>; dma-names = "rx", "tx"; status = "okay"; phandle = <0x4e>; };
----------------------------------------------------------------------------------------------------------------------------------
CONVERT (BACK) dts to dtb (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
dtc -I dts -O dtb /boot/dtb/sun8i-h3-nanopi-neo.dts -o /boot/dtb/sun8i-h3-nanopi-neo.dtb_I2S_okay
----------------------------------------------------------------------------------------------------------------------------------
COPY new dtb over dtb (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
cp /boot/dtb/sun8i-h3-nanopi-neo.dtb_I2S_okay /boot/dtb/sun8i-h3-nanopi-neo.dtb
----------------------------------------------------------------------------------------------------------------------------------
COPY sun8i-h3-I2S-out.dts to home (working directory on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
copy sun8i-h3-I2S-out.dts --> /home/guido/
----------------------------------------------------------------------------------------------------------------------------------
armbian-add-overlay (on NanoPi Neo)
does only work if you got the kernel-headers installed for your actual kernel-version
(at this time the lastest kernel-header are (via armbian-config -> Software -> Install Headers)
Linux kernel headers for 4.14.84-sunxi on armhf - so NOT for kernel 4.19.y)
----------------------------------------------------------------------------------------------------------------------------------
root@npi-neo(192.168.6.24):/home/guido# armbian-add-overlay ./sun8i-h3-I2S-out.dts
Compiling the overlay
Copying the compiled overlay file to /boot/overlay-user/
Reboot is required to apply the changes
----------------------------------------------------------------------------------------------------------------------------------
dtbo is created (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
root@npi-neo(192.168.6.24):/home/guido# ls -l /boot/overlay-user/
insgesamt 4
-rw-r--r-- 1 root root 1323 Dez 7 19:34 sun8i-h3-I2S-out.dtbo
----------------------------------------------------------------------------------------------------------------------------------
user-overlay is created in /boot/armbianEnv.txt (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=usbhost1 usbhost2 rootdev=UUID=33ca90d6-130b-4d5f-a8f4-95b3b97ef5c0 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u user_overlays=sun8i-h3-I2S-out
----------------------------------------------------------------------------------------------------------------------------------
now REBOOT (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
root@npi-neo(192.168.6.24):~# lsmod|grep i2s
sun4i_i2s 16384 0
snd_soc_core 118784 2 sun4i_i2s,sun8i_codec_analog
snd_pcm 69632 3 sun4i_i2s,snd_pcm_dmaengine,snd_soc_core
----------------------------------------------------------------------------------------------------------------------------------
EDIT config-default.conf (on armbian-BuildSystem)
----------------------------------------------------------------------------------------------------------------------------------
cd /home/guido/build
nano ./config-default.conf
replace content /home/guido/build/config-default.conf with attached
config-default.conf_nanopineo
./compile
-> With this conf, script compilation will stop to overwrite kernel source to build patch
-> At that time, overwrite original Kconfig with the one you modified above
(at "Make changes to U-Boot" press ENTER to proceed)
wait for
"Make your changes to /home/guido/build/cache/sources/linux-mainline/linux-4.14.y then press ENTER"
BUT DONT PRESS ENTER YET
----------------------------------------------------------------------------------------------------------------------------------
EDIT/SAVE Kconfig in a 2nd shell-Window (on armbian-BuildSystem)
----------------------------------------------------------------------------------------------------------------------------------
nano /home/guido/build/cache/sources/linux-mainline/linux-4.14.y/sound/soc/codecs/Kconfig
the part FROM
config SND_SOC_PCM5102A tristate TO
config SND_SOC_PCM5102A tristate "Texas Instruments PCM5102A CODEC - I2S"
----------------------------------------------------------------------------------------------------------------------------------
NOW PRESS ENTER in the 1st shell-Windows (.compile.sh) (on armbian-BuildSystem)
----------------------------------------------------------------------------------------------------------------------------------
-> Then script compilation will stop again to ask whether you want to add pcm5102a to compile
-> Default is N, so you need to enter m for module compilation
Texas Instruments PCM5102A CODEC - I2S (SND_SOC_PCM5102A) [N/m/?] (NEW) m = m for module compilation
After compile is complete
----------------------------------------------------------------------------------------------------------------------------------
copy (via SCP/FTP?) the .deb's from /home/guido/build/output/debs (on armbian-BuildSystem)
to /home/guido/ (on the NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------
INSTALL the .deb's (here only header and image - because it was already 5.67 (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
cd /home/guido
dpkg -i ./linux-headers-next-sunxi_5.67_armhf.deb
dpkg -i ./linux-image-next-sunxi_5.67_armhf.deb
(image did include the .ko module for the pcm5102a)
----------------------------------------------------------------------------------------------------------------------------------
now REBOOT (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
=====================================================================================
=====================================================================================
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ATTENTION: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
After reboot my NanoPi Neo show the following armbian-version:
ARMBIAN 5.65 stable Debian GNU/Linux 9 (stretch) 4.14.84-sunxi
and 2 upgrades for headers&image (without the PCM5102A support)
please keep in mind to freeze the kernel-updates in armbian-config
for not to loose the support (module) for the PCM5120A!
armbian-config -> system -> Freeze Disable kernel upgrades
=====================================================================================
=====================================================================================
----------------------------------------------------------------------------------------------------------------------------------
BE HAPPY about a successful i2s mapping in dmesg (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
root@npi-neo(192.168.6.24):~# dmesg|grep -i i2s
[ 6.911751] asoc-simple-card sound_i2s: pcm5102a-hifi <-> 1c22000.i2s mapping ok
----------------------------------------------------------------------------------------------------------------------------------
I enabled also ananlog-Codec (on NanoPi Neo)
----------------------------------------------------------------------------------------------------------------------------------
root@npi-neo(192.168.6.24):/home/guido# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: Codec [H3 Audio Codec], Gerät 0: CDC PCM Codec-0 []
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 1: I2Smaster [I2S-master], Gerät 0: 1c22000.i2s-pcm5102a-hifi pcm5102a-hifi-0 []
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
----------------------------------------------------------------------------------------------------------------------------------
/etc/asound.conf (on NanoPi Neo) - later I2S did switch automatically to card 0
----------------------------------------------------------------------------------------------------------------------------------
pcm.!default { type hw card 1 device 0 } ctl.!default { type hw card 1 }
----------------------------------------------------------------------------------------------------------------------------------
Reference-Threads
----------------------------------------------------------------------------------------------------------------------------------
config-default.conf.mod_nanopineo
sun8i-h3-I2S-out.dts
-
guidol reacted to dony71 in pcm5102 dac not showing on armbian 5.65 [SOLVED]
You have to modify config PCM5102A like below on cache\source\linux-mainline\v4.14.84\sound\soc\codecs\Kconfig
config SND_SOC_PCM5102A
tristate "Texas Instruments PCM5102A CODEC - I2S"
then replace config-default.conf with attached
With this conf, script compilation will stop to overwrite kernel source to build patch
At that time, overwrite original Kconfig with the one you modified above
Then script compilation will stop again to ask whether you want to add pcm5102a to compile
Default is N, so you need to enter m for module compilation
config-default.conf.mod
-
guidol got a reaction from WarHawk_AVG in Orange PI Zero optimization
The OPi Zero doesnt need much power.
I only disabled the Wifi - because I do use Ethernet - with the following commands in the /etc/rc.local (I know are are also other/better ways):
ifconfig wlan0 down rmmod xradio_wlan rmmod mac80211 rmmod cfg80211
-
guidol got a reaction from gounthar in Orange PI Zero optimization
The OPi Zero doesnt need much power.
I only disabled the Wifi - because I do use Ethernet - with the following commands in the /etc/rc.local (I know are are also other/better ways):
ifconfig wlan0 down rmmod xradio_wlan rmmod mac80211 rmmod cfg80211
-
guidol reacted to 5kft in Next LTS kernel 4.19.y Allwinner A10, A20, A64, H2+, H3, H5, H6 debugging party
Hi, this should now be fixed with https://github.com/armbian/build/commit/e0f27fff66220e56b6419879957af28fa46ff84f. I tested this on an unmodified Plus2 H5 (i.e., missing MOSFET in the regulator switching circuit). Without this change the boot would fail as @guidol noted (heartbeat, then stops, and the board hangs); with this change it boots and runs just fine, and the maximum CPU clock rate is properly limited.
-
guidol reacted to Igor in Orange Pi 2G-IOT
Some mainlining progress: https://www.96boards.org/blog/orangepi-i96-mainlining-update-part1/
-
guidol reacted to vlad59 in Next LTS kernel 4.19.y Allwinner A10, A20, A64, H2+, H3, H5, H6 debugging party
Added report for Banana Pi with Dev image. Everything seems to work fine (did not test sata for now). The kworker CPU problem (use search for more information) is still there but removing the module still works (I never managed to stress the CPU enough to go above 55°C so I think removing the module won't cause any problem)
-
guidol reacted to ning in [FIXED]My OP-PC bricked, how to fix? brainstrom! power adapter broken.
@tommy@guidol thank you.
-
guidol reacted to martinayotte in Armbian support for BeagleBone Black
Just as a PoC, I've burned a recent Armbian OPiPC image on a SDCard, then mounted it, copy the /boot folder from an recent BeagleBoneBlack image on top of existing /boot folder, along with /lib/modules/4.14.79 and kernel from a BeagleBone build I've done using the https://github.com/beagleboard/linux branch. I've copied U-boot sectors from BBB image into by SDCard. I've also remove the /boot/boot.scr from original Armbian since it has precedence over BeagleBone /boot/uEnv.txt.
I've then inserted in my old BBB, booted it ! It worked !!!
The only thing that didn't work as is, is the USB WiFi that I'm using : with old way /etc/network/interface, it didn't connect to my AP by itself, I had to use "wpa_supplicant" ...
I'm now having an BeagleBian Stretch ...
EDIT : I've then use "nand-sata-install", which worked luckily since this old BBB first version has only 2GB eMMC ... But it seems that u-boot is bad, I had to restore the U-boot sectors again, but that didn't work ... I will dig the issue, maybe u-boot geometry doesn't start at byte 8192 ...
EDIT2: I've finally got the eMMC working after I've discovered that even eMMC is only enabled using an overlay named /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo, so I added in my experimental image.
-
guidol reacted to pete11235 in Bricked my 2g Espressobin, cannot seem to recover via SATA or UART...
I am an idiot, I didnt go far enough down in the forum, I got it working using this method:
-
guidol got a reaction from Igor_K in FriendlyARM Black-Friday
If anyone was thinking about to get some NanoPi - then today could be the right day
"2018's Black Friday Is Coming!"
http://www.friendlyarm.com/Forum/viewtopic.php?f=3&p=5316#p5316
Up to 20 Items with Max Discount of $10+ Only on This Friday! [H3] NanoPi NEO: 256M (DO NOT Include Free Heat Sinks): $7.99 512M(DO NOT Include Free Heat Sinks): $9.99 NanoPi NEO Core-LTS: 256M+4GB: $12.99 512M+8GB: $16.99 NanoPi NEO Air : 512M+8GB: $19.99 NanoPi M1 Plus: 1GB+8GB:$29.99 [H5] NanoPi NEO2: 512M: $14.99 1GB: $24.99 NanoPi NEO Core2: 512M+8G:$19.99 1GB+8GB:$26.99 NanoPi NEO Plus2: 1G+8GB: $32.99 NanoPi K1 Plus: $29.99 NanoPi A64: $14.99 [RK3399] NanoPi NEO4: $39.99 NanoPi M4 : 2GB: $59.99 4GB: $79.99 [4418] NanoPi Fire2A : $24.99 NanoPc-T2: $39.99 NanoPi S2: $29.99 Smart4418: $29.99 Core4418: $34.99 [6818] NanoPi Fire3: $29.99 NanoPc-T3 Plus: $59.99 Smart6818: $29.99
-
guidol reacted to richardk in Armbian support for BeagleBone Black
Beaglebone Black (et al) are already in pretty good hands, as beagleboard.org (seems like a project of Texas Instruments employees) does well supporting their own stuff. If you want up-to-the-minute modern kernels, best by far is Robert C Nelson's work: https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone . (I support a commercial project with a Beaglebone Black inside, and I'm very pleased with the resources available.)
-
guidol reacted to gamelaster in Using custom kernel for a board
Hi,
Great job Igor. I have working Bluetooth and Audio, it works pretty good (shown on video lower) (Note that this my build uses Anarsoul's kernel with no patches (Only some I kept)). I will make Pull Requests for Bluetooth and Audio support for A64, probably this weekend (Should work also on Teres). Also please, it's possible to add support for test "bleeding edge" images (like this one)?
-
guidol reacted to Igor in Using custom kernel for a board
1st build: https://dl.armbian.com/pinebook-a64/Debian_stretch_dev_desktop.7z
(still cleaning patches)
-
guidol reacted to Igor in Next LTS kernel 4.19.y Allwinner A10, A20, A64, H2+, H3, H5, H6 debugging party
Currently it's broken (DEV) on both. No need to test ATM. Will be probably resolved later today ... when kids go to sleep
-
guidol got a reaction from 5kft in Next LTS kernel 4.19.y Allwinner A10, A20, A64, H2+, H3, H5, H6 debugging party
I did also compile for the OPi R1 - I could also successfully test the USB via the OPi NAS AddOn.
A report has been created (dont know if @5kft did this also)
I do have some lacking at the SSH-connection via eth0 like on a "bad" WiFi-Connection because of:
[ 1439.605021] ==> rtl8188e_iol_efuse_patch [ 1501.258078] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 1523.785870] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [ 1524.810021] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 1528.905843] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [ 1529.930016] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 1538.121820] dwmac-sun8i 1c30000.ethernet eth0: Link is Down [ 1539.146029] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 1628.389288] ==> rtl8188e_iol_efuse_patch [ 1691.429555] ==> rtl8188e_iol_efuse_patch [ 1754.554618] ==> rtl8188e_iol_efuse_patch the second ethernet-port enxc0742bffxxxx didnt seem to have this lacking
-
guidol reacted to Igor in Next LTS kernel 4.19.y Allwinner A10, A20, A64, H2+, H3, H5, H6 debugging party
Yes. Sorry
good enough. Will mark this as tested.
Danke
-
guidol reacted to Arinze Izukanne in Orange Pi 2G-IOT
Thank you.
I have been able to recompile the kernel using sources provided by orangepi-xunlong. I have the camera detected and working now.
-
guidol got a reaction from Igor in problem updating my build-system
OK - here the solution I did found at
https://askubuntu.com/questions/1079797/how-do-i-fix-an-error-with-libc6-dev-armhf-cross-in-ubuntu-18-04-when-trying-to
To prevent too many dependencies from being removed, try dpkg -P --force-depends
sudo dpkg -P --force-depends libc6-armhf-cross libc6-dev-armhf-cross sudo apt clean sudo apt update apt --fix-broken install OR sudo apt -f install apt install libc6-armhf-cross libc6-dev-armhf-cross
-
guidol reacted to f8n in No sound on nanopc t4
Managed to get a massive ear bleeding screech out of the audio jack after flipping bits around to enable/disable the microphone inputs folled by toggling rt5651 asrc enable/disable in the alsa mixer. Trying to hone in now on how to get audio without mic feedback. On the right track at least.
-
guidol reacted to Igor in Improve 'Support over Forum' situation
Forum enachements:
theme "armbian" updated with upstream version, manual fixes and adjustment with theme designer, fixed recycle bin, updated member map plugin added crowdfunding plugin (this will show supporters automagically) added "show new topic rules" plugin (currently enabled in recycle bin for test) added raffles and giveaway system (will be enabled for users when properly tested) Please report if you find any bugs in the forum theming
-
guidol reacted to Bahaa in Armbian 5.59 and later WiFi issue
@chwe Sorry if this response is late, the official guide from Armbian based on "nmtui-connect" is robust and does the job for connecting but it needs user interaction, on the other hand, the tool from @botfap "https://github.com/botfap/armbian-image-config" is for pre-configuring an image, what I really need is a robust tool to configure WiFi non-interactively, after the images is burnt (to be used in a bash script for instance), since I don't know WiFi SSID/credentials in advance.
-
guidol reacted to mohorst in Orange Pi Zero +2 H5 - SD to eMMC
After a fresh installation, all works as expected.
-
guidol got a reaction from TonyMac32 in RunCPM on armbian - CP/M Weekend fun
https://github.com/MockbaTheBorg/RunCPM
there is a nice little CP/M emulator which do compile fine under armbian.
(There is also a version for the Arduino DUE with SD-Hat or a ESP32/Teensy)
With that you can run many CP/M-Software like Wordstar, dBase II and so on
Special on this emulation is that it do use directorys as drives
The directory A (or A/0/) would be Drive A>
Maybe you also want do something retro this weekend?
Here is how I did compile/install it on my OPi One:
compile RunCPM: =============== install ncurses-dev and lua: ============================ apt install libncurses5-dev liblua5.3-dev git make cd /home/guido/ git clone https://github.com/MockbaTheBorg/RunCPM RunCPM_git cd RunCPM_git/RunCPM make posix clean make posix build mkdir /home/guido/RunCPM mkdir /home/guido/RunCPM/A mkdir /home/guido/RunCPM/A/0 cp RunCPM /home/guido/RunCPM cp /home/guido/RunCPM_git/CCP/* /home/guido/RunCPM cp /home/guido/RunCPM_git/DISK/A.ZIP /home/guido/RunCPM/A/0 cd /home/guido/RunCPM/A/0 unzip A.ZIP cd /home/guido/RunCPM To start the Emulation: ======================= ./RunCPM To exit the emulation: ====================== a> exit