Jump to content

A20-Olimex Olinuxino Micro - activating VGA on SD image


onekk

Recommended Posts

Hello. There is a method to activate the VGA output in the SD image?

 

I explain better, I want to replace the stock Debian Image that came with the Olimex Board, but the system is on a distant location where there is no computer, I need to swap the SD card and have the system booting and usign the console of the machine to perform all the remaining operation.

 

I need to have the SD Card image that boot with VGA output, the rest of the operation coulbe done with the machine, (I nedd to configure the wifi and connet to the router and then in internet)

 

I have read a topic that said that i nedd to modify the fex file, but this is feasible with my computer running Linux mint (Ubuntu 14.04)?

 

TIA and Regards

 

Carlo

Link to comment
Share on other sites

I have found, installed and compiled the tools on http://linux-sunxi.org/Sunxi-tools

 

 

I have mounted the image on /mnt/test as stated in some other place of this site and "decoded" the script.bin file in /mnt/test/boot 

 

The image is Armbian_5.14_Micro_Debian_jessie_3.4.112_desktop.raw

 

But the decoded fex file says

 

[disp_init]

disp_init_enable = 1

disp_mode = 0

screen0_output_type = 1   

screen0_output_mode = 5

screen1_output_type = 1

screen1_output_mode = 5

 

But screen0_output_type = 1  is accoding to the Fex-guide on the sunxi site the LCD display and not the HDMI as I argued from the documentation.

 

Apart from modifying the relevant VGA voices, I think

 

screen0_output_type = 4

screen0_output_mode = 5 or 4 

 

will perform well on my hardware

 

 

The remaining problem is: how to re-transform the modified tree in /mnt/test that contain the new script.bin in a  .raw image that has to be written on the SD card?

 

TIA and Regards

 

Carlo
Link to comment
Share on other sites

You can mount image to loop device, copy this file there, un-mount image and burn SD card. This way:

LOOP=$(losetup -f)
losetup $LOOP image.raw
mount $LOOP"p1" /mnt
cp your.bin /mnt/boot/script.bin
umount /mnt
losetup -d $LOOP
Link to comment
Share on other sites

mount $LOOP"p1" /mnt

 

give me this error

 

mount: il device speciale /dev/loop0p1 non esiste

 

roughly translated "mount: special device /dev/loop0p1 not exist"

 

I'm using Lnux Mint 17.3 (Ubuntu 14.04 based)

 

Partially Solved:

 

sudo kpartx -av image.raw


sudo mount /dev/mapper/loop0p1 /mnt/test/


.... do the modifications



sudo umount /mnt/test
 
 
1) apart for modifying the script.bin
 
in the boot.cmd that i suppose is the equivalent of the grub.cfg for uboot i see:
 
setenv bootargs "console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=${verbosity}"
This option disp.screen0_output_mode=1920x1080p60
 
Has to be modified to use the VGA at 800x600p60  or 1024x768p60
 
Now is working, I found on this site the relevant information to modify, and recompile the boot.cmd, that I have missed to see the first time.
 
 
I can guess that 800x600p60 is resolution (p)frequency but for the mode VGA or HDMI ?
 
Where could I learn some more on the boot process?
 
A little question remain, when the modifications made  in micro.bin and in boot.scr are overwritten and are needed to be applied again?
 
This question was modified in the Armbian environment during the apt-get upgrade phase.  :-D
 
 
Updating to 5.16 from the 5.14 image that I've Downloaded and modified, I have noted this:
 
The old bin was renamed bin.old and mantained in place, so I've:
 
1) renamed micro.bin in /boot/bin
2) copied my /boot/bin.old/micro.bin in /boot/bin as is (maybe this is not too safe if something change)
2) "recompiled" my boot.cmd (that from the timestanp seems unchanged) in boot.scr (just in case)
 
And rebooted, all working.
 
I have seen how to assign the static ip to my wlan adapter (The wicd applet in the stock XFCE have these settings)
 
Installed Mate-Terminal, removed icedove and installed pyserial and python-tk to make my CNC working (I forgot to say that the Olimex Board is the controller of an  eShapeoko CNC)
 
Now I have some little problems.
 
1) I need an applet that show the state of caps lock and block num on the panel, as my keyboard has no leds on it.
 
2) how to suppress the verbose startup and put maybe a static image till the desktop is on
 
Hope maybe here i will find some solution.
TIA and Best Regards
 
Carlo 
Edited by onekk
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines