-
Posts
3892 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by martinayotte
-
-
The u-boot is taken from this similar path : /usr/lib/linux-u-boot-dev-pinebook-a64_5.xx_arm64/u-boot-sunxi-with-spl.bin
-
It is opening /proc/cpuinfo there : https://github.com/WiringPi/WiringPi/blob/master/wiringPi/wiringPi.c#L698
Then it is checking if it is an Raspberry there : https://github.com/WiringPi/WiringPi/blob/master/wiringPi/wiringPi.c#L723
You need to tweak that port, either by skipping it or provide check for H3 SoC.
Anyway, maybe someone already done that by forking this original WiringPi to make it compatible with NanoPiNeoAir ...
-
It should be possible to workaround that by tweaking the code that validate the /proc/cpuinfo output.
-
-
The "simple steps" were already described above ...
- "swapoff /var/swap"
- "dd if=/dev/zero of=/var/swap bs=1024 count=524288"
- "mkswap /var/swap"
-"swapon /var/swap"
-
As said many times in this forum, having 2 interfaces on the same subnet is looking for troubles ...
-
@balbes150, could you please provide links when you've new images, I've always issues to find them, couldn't on https://yadi.sk/d/srrtn6kpnsKz2/Linux ...
Thanks in advance,
-
I've just install samba on one of my OrangePiZero, without changing default settings except adding a public share to smb.conf, and I'm able to connect to it "as-is" on my Win7 VM.
-
15 minutes ago, orontee said:
I've not been able to find what was the version of the running kernel
Simply do the command "uname -a", it will tell you which kernel you are running ...
-
With a USB-TTL Serial dongle, you will at least see if it start booting, first the U-Boot, and than the Linux Kernel.
Looking at the log, we can figure out what is going wrong, even if no display, no network, the serial should bring you at a login prompt, except it is crashing.
-
If you check the routes, you should have default gateway for each of your interfaces.
But several times, you will see that some of those default gateways are not present because they are duplicates of each others.
This means that if you connect to one interfaces, maybe responses packets will come back from another interface.
That why we say often in this forum, especially related to eth0/wlan0 same subnet conflicting each other, that if you are doing SSH on wlan0, and you are disconnecting eth0 cable, the SSH will freeze.
-
Having 2 interfaces on the same subnet is kind of looking for troubles ...
-
Of course !
dd if=/dev/zero of=/emmc-mount-point/newswap bs=1024 count=<what_ever_size_you_wish> mkswap /emmc-mount-point/newswap nano /etc/fstab swapon -a
The "nano /etc/fstab" above is to add new entry for the second swap file.
To extend existing swapfile, you first need to turn off swap using "swapoff -a", then do same kind of "dd"/"mkswap" and "swapon -a" on the existing /var/swap, but with larger block count.
-
Of course !
Decompile the DTB using "dtc" compiler, edit the resulting source by changing "dir-mode" to "host", and recompile the DTB.
Of course, make sure to do a backup of the DTB before overwriting it ...
-
As I mentioned, you need to tweak DT by changing the "dr-mode" to "host" since it is defaulted to "otg" for usb-gadget.
-
No danger ...
-
As mentioned above, the switch needs to short C301 to VCC-IO, or C65 to GND.
So here C65 is on Q9 collector pin 3, but you need to short it to GND, not at header pin1, which is 3.3V, but pin6 which GND.
-
Try to borrow a USB-TTL Serial from a friend ...
-
You should get equipped with a USB-TTL Serial dongle and attach it to the serial debug port of the OPiOne, you will then see all the logs at boot time and we will be able to figure out with you.
-
With the above DT fix, u-boot doesn't randomize any MAC anymore, it takes the Serial Number located in the SoC.
You can check it in Serial field of /proc/cpuinfo.
-
Assuming you have "dtc" installed (and keep a backup of the original /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb :
dtc -I dtb -O dts -o sun8i-h2plus-orangepi-zero.dts-4.11.12 /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb
Edit the DTS with "nano sun8i-h2plus-orangepi-zero.dts-4.11.12" and add 'ethernet0 = "/soc/ethernet@1c30000"; ' in the "aliases" section.
Then, recompile the DTB :
dtc -I dts -O dtb -o /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb sun8i-h2plus-orangepi-zero.dts-4.11.12
-
7 minutes ago, Elliot Woods said:
now i just need to wait for the nightly build server
You can also decompile DT, edit by adding this alias, and recompile it.
-
-
@zador.blood.stained, I've discovered some thing funny ...
In sun8i-h2-plus-orangepi-zero.dts, there is a comment in the alias section :
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
But it seems that it is not true any more, neither in sun8i-h3.dtsi or sunxi-h3-h5.dtsi !
So, that is why we lost fix MAC on few boards when we switched from 4.10 to 4.11 ...
I will prepare a patch in the following minutes ...
Trying to boot NanoPi-K2
in Amlogic meson
Posted
Wishing to having a Mainline running on this NanoPi-K2, I gave second tried using Armbian_5.32_S9xxx_Ubuntu_xenial_4.13.0-rc7-next-20170901_mate.img.xz and then dts.img copied and ran ./fusing.sh /dev/sdx.
Still no chance : still stuck at "Starting kernel ...".
About trying using a OrdoidC2 build, but they have some protection in their u-boot/bl1.bin.hardkernel, producing the following error :
***** Warning!! *****************************************************
* This board have not been autorized or product keys are not valid. *
* Please contact with Hardkernel or your distributor *
*********************************************************************