I wasn’t able to install openSUSE-12.3 on my cubie board [1] using the instructions from openSuse ARM portal [2]
After some research I got the idea on how to create my own openSUSE distro on the SD card.
The easiest way to install openSuse on Cubieboard1 is to use the last tested hardware-specific package “hwpack” from sunxi project (linux-sunsunxi-bsp repo) and existing root file system image from openSUSE repo.
We need to download the following:
– the latest hwpack [3].
– the latest rootfs image [4]
– script “sunxi-media-create.sh” [5]
The script creates a bootable media for us and should be launched on behalf of root account.
The script usage:
./sunxi-media-create.sh /dev/[SD] path_to_hwpack path_to_rootfs_tarball | norootfs
Here is a short description of what the script does:
– extracts hwpack
After unpacking you will have three directories:
– bootloader: contains sunxi-spl and u-boot;
– kernel: contains kernel uImage and script.bin;
– rootfs: contains some configuration files and kernel modules.
– writes pre-boot loader SPL and U-Boot to the SD card
– creates two partitions on the SD card (fat and ext-4)
– writes kernel uImage and script.bin to the first partition.
– extracts rootfs tarball and writes its contents to the second SD partition.
– copies kernel modules from hwpack (rootfs/lib/modules/3.4.43) to the appropriate place on the second SD partition (/lib/modules)
– copies configuration files from hwpack (rootfs/etc/modules and rootfs/etc/modprobe.d/8129cu.conf) to the appropriate place on the second SD partition (/etc)
File rootfs/etc/modules contains the list of modules that should be loaded at boot time. However, different Linux distros have different ways of loading kernel module during system boot.
The way it works in OpenSUSE is by adding module name into MODULES_LOADED_ON_BOOT system variable in “/etc/sysconfig/kernel” file. This configuration file is read by “/etc/init.d/boot.loadmodules” and specified modules will be loaded on demand.
Hence this precaution is advised india generic cialis regencygrandenursing.com to this age group of males. buy levitra where You can actually go and visit their office if you wanted. Male sexual confidence plays an important part for the quality of life. viagra 100mg This condition is said to be one of the best drugs which gives fast viagra pfizer pharmacie and instant results. So, after the script is finished you should do the following:
1. mount the SD second (ext4) partition
2. open the ‘/etc/sysconfig/kernel’ file in an editor then add the required modules to the MODULES_LOADED_ON_BOOT variable. It should look like this:
MODULES_LOADED_ON_BOOT=”sw_ahci_platform lcd hdmi ump disp mali mali_drm 8192cu”
As an alternative way, you can add the next row at the end of function “copyData()” of the “sunxi-media-create.sh” script:
sed -i ‘/MODULES_LOADED_ON_BOOT=””/c\MODULES_LOADED_ON_BOOT=”sw_ahci_platform lcd hdmi ump disp mali mali_drm 8192cu”‘ $MNTROOT/etc/sysconfig/kernel
I use HDMI to VGA adapter and display with 1280×1024 resolution. To change the default HD resolution I used a kernel command option “screen0_output_mode=1280x1024p60” in the file uEnv.txt (for more details see [6]).
So, what we need to do is:
1. Create file uEnv.txt and then add the below rows to it:
mmcboot=fatload mmc 0 0x43000000 ${fexfile}; fatload mmc 0 0x48000000 ${kernel};
bootm 0x48000000
uenvcmd=run mmcboot
extraargs=rootwait disp.screen0_output_type=3 disp.screen0_output_mode=1280x1024p60
2. Mount the first SD partition (FAT) and put the file there.
References:
[1] http://en.wikipedia.org/wiki/Cubieboard
[2] https://en.opensuse.org/HCL:CubieBoard
[3] http://dl.linux-sunxi.org/users/amery/testing-3.4/latest/cubieboard_hwpack.tar.xz
[4] http://download.opensuse.org/repositories/devel:/ARM:/12.3:/Contrib:/sunxi/images
[5] https://github.com/linux-sunxi/sunxi-bsp/tree/master/scripts
[6] http://linux-sunxi.org/Display
[whohit]cubieboard_p1[/whohit]