-
Posts
3892 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by martinayotte
-
-
I maybe wrong, but I remember that several months ago, I was able to over-write it.
But then, after using newer u-boot, I wasn't able, maybe a bug has been introduced elsewhere, not by Armbian.
-
It is probably hard-coded into u-boot, and not over-writable.
-
If you can switch to newest image because you simply added tons of applications, and tweaked tons of configs, what you can do is still download newest image, plug into a SDCard reader over one of the USB, then move the old /boot into /boot-OLD and copy the one from the new image from /mnt/boot into /boot. Probably, you will also need to install newest u-boot by doing :
dd if=/usr/lib/linux-u-boot-dev-orangepipc_5.27_armhf/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8
The, reboot and see newest kernel, but still able to use you old applications
-
But why removing the LED PA15 from FEX becomes a pain ?
Is the MFRC522 is 3.3V or 5V ? If 5V, you will need voltage level shifters.
If you wish to keep the SPI-NOR, you can probably use a I2C-to-SPI bridge such SC18IS602, but it will be more trouble on software side.
-
For flashing the SPI-NOR, you need to get "mtd-utils", either from apt-get or from sources.
You need to add in the /boot/armbianEnv.txt the following overlay :
overlays=spi-jedec-nor
Then, reboot, and check if SPI-NOR appears by doing "cat /proc/mtd". If you have mtd partitions, then install u-boot-spl using this command (check previous partitions to make sure u-boot is mtd0) :
flashcp /usr/lib/linux-u-boot-dev-orangepipc_5.27_armhf/u-boot-sunxi-with-spl.bin /dev/mtd0
Next steps are for copying your sdcard into you already inserted usb drive by using nand-sata-install. After copy finished, edit the boot.cmd from your usb drive, this means probably /mnt/boot/boot.cmd if drive mounted in /mnt.
Change all "mmc" words by "usb" and add on top of boot.cmd the line "setenv devtype usb", save it and recompile it with "mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr".
Then, shutdown the board, remove the sdcard, and re-power the board. Check the boot log using USB-TTL adaptor. If everything fine, you should get into the login prompt. Bingo !
-
Unfortunately, I don't have any DS2406 to try to figure out. Maybe there is an issue with the driver itself ...
At least, you've got the DS18B20 working !
-
Booting from SPI-NOR doesn't need other things than the u-boot-sunxi-with-spl.bin in the flash, which a bit less than 500K.
The kernel itself along uinitrd and dtb should be located elsewhere.
I've never try to boot in NFS or TFTP yet, but booting from USB drive just works fine.
(BTW, pushing u-boot-sunxi-with-spl.bin into flash isn't done by nand-sata-install, nand-sata-install is used to copy sdcard into other storage such USB drive or eMMC)
-
The fact that you are seeing spidev in lsmod doesn't mean nothing wrong occured.
Check the kernel logs with "dmesg | grep spidev"
-
There is also overlays provide in recent Mainline builds for A20, such /boot/dtb/overlay/sun7i-a20-w1-gpio.dtbo.
To enable it, simple edit /boot/armbianEnv.txt and add this :
overlays=w1-gpio
And then reboot.
(Note : to use such overlays, your need a recent image, not upgrades from old image)
-
Because the POWER_LED is already in use by the kernel.
It is the same if you try to use it with sysfs.
echo 362 > /sys/class/gpio/export -bash: echo: write error: Device or resource busy
The only way to free it is to edit DT and removing it from the r_pio section.
But the STATUS_LED is already free and available.
-
In Mainline, the FEX (ie script.bin) is not used at all anymore.
It is the DTB that replace all this mechanisms.
You need to load DTB overlay for OneWire, add the following in /boot/armbianEnv.txt
overlays=sun8i-h3-w1
and then reboot ...
-
You need to remove LED from PA15 in the FEX
-
There are plenty of links on google, but here is one :
http://stackoverflow.com/questions/21670967/how-to-compile-device-tree-source-files-dts
The DTB for your board is normally located in /boot/dtb/<board_name>.dtb.
-
Bonnjour Monsieur,
It can be done, but only with Mainline along with a SPI-NOR Flash attached on SPI bus, where U-Boot SPL need to be installed.
-
Mainline kernel doesn't use FEX at all, it is using DeviceTree DTB.
You first need to decompile DTB into DTS and you need to add some thing like that in you DTS in PIO section :
w1_pins: w1_pins { allwinner,pins = "PD14"; allwinner,function = "gpio_in"; // in (initially) allwinner,pull = <0>; // off };
Then, at the root level :
w1: onewire@0 { compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_pins>; gpios = <&pio 3 14 0>; // PD14 status = "okay"; };
-
If the CONFIG_W1_SLAVE_DS2406=m was not already present in config-3.4.113-sun8i file, this means you have to compile a new kernel to get ds2406.ko modules.
Adding it to config-3.4.113-sun8i file doesn't do the job.
-
Which kernel do you use ?
Because in Mainline, the following modules are part of the nightly builds :
CONFIG_W1_SLAVE_DS2408=m CONFIG_W1_SLAVE_DS2406=m
-
Yes, the triangle is pointing to pinNo.1
Then, you should refer to schematic for actual pin names.
-
There are several editors that can be used, but one of the easiest is call "nano".
type "nano /etc/asound.conf", edit what you need, than save it by saying "yes" when exiting with "ctrl-x".
-
Quote
On cubietruck I have installed opnssh-client and openssh-server
I don't understand what you did !
Both SSH client and server is already installed in any Armbian, so why did you had installed ?
QuoteI give username and password but then it freezes and I cannot access any of the folders
After proper login, this should bring you a shell, in this shell you can do commands like "ls" to see all the files and folders.
-
That makes me remembering when I purchased my first digital camera : 1Mpix per picture, 32MB FullSD. cost me $1000 ...
-
Not only /boot, but also /lib/modules/<new-kernel> ...
-
Tutorial is already detailed here : https://docs.armbian.com/Developer-Guide_Build-Preparation/
-
Strange ... I had the issue until I clicked on "mark site read" ...
Hoping it won't occur again.
Orange Pi Win
in Advanced users - Development
Posted
Note that most of the above are warning for the HDMI driver, you shouldn't care to much about them.
The real error you faced is :
ERROR: Couldn't open "config.its"
And that reveal to me that I forgot to commit 1 files during my initial commit few days ago : missing blobs/sun50i_a64_opiwin.its added.
I've just committed it now ...
( @zador.blood.stained, in fact, this forgotten file should be directly in your u-boot proxy repository, but I presume I can't commit it there directly, so, in the mean time, I've done it inside a patch)