GK802 Beta1 Ubuntu 11.10 script install version.

deadhp1
Posts: 677
Joined: Thu Sep 20, 2012 5:22 pm

GK802 Beta1 Ubuntu 11.10 script install version.

Postby deadhp1 » Wed Jan 09, 2013 9:34 pm

This is the GK802 Ubuntu 11.10 given to us by Geekbuying who got it from the factory.
It contains files needed to create a booting micro-sd using linux.
Specifically is has:
-u-boot
-kernel
-root-fs
-3 scripts(including the modifed one)

I've modified the script "fsl-sdcard-partition.sh" in order to properly make this image.
The unmodifed version has been renamed to "fsl-sdcard-partition.sh.old".

The script, rootfs, uboot, and kernel can be downloaded from the Google Drive mirror:
http://adf.ly/H8Gx8

In order to use this you'll need at least a 4GB micro-sd card.

1)Download and decompress the file.
2)Load up terminal and navigate to the directory of the decompressed files.
3)insert your micro-sd card and use dmesg to figure out which /dev/sdX your card is.(on my setup it usually comes out to /dev/sdc)
4)Type the following command to make this image on your micro-sd:

Code: Select all

sudo ./fsl-sdcard-partition.sh /dev/sdc

(/dev/sdc is location of my micro-sd card. Yours may vary depending on your setup.)

5)Let it finish. It may take quite a while. Afterwards you can open up your GK802, and replace the internal micro-sd card with this one.

Raymond
Posts: 15
Joined: Mon Oct 29, 2012 9:14 am

Re: GK802 Beta1 Ubuntu 11.10 script install version.

Postby Raymond » Thu Feb 07, 2013 5:18 pm

Here is a copy and paste of my command line:

Code: Select all

root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/gk802_ubuntu11.10_bin# fdisk -l

Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes
4 heads, 16 sectors/track, 243200 cylinders, total 15564800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00084d4a

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            2048      131071       64512    b  W95 FAT32
/dev/mmcblk0p2          131072    15564799     7716864   83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Note: sector size is 4096 (not 512)

Disk /dev/sda: 3000.6 GB, 3000558944256 bytes
255 heads, 63 sectors/track, 45599 cylinders, total 732558336 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   732558335  2930233340   ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Note: sector size is 4096 (not 512)

Disk /dev/sdb: 3000.6 GB, 3000558944256 bytes
255 heads, 63 sectors/track, 45599 cylinders, total 732558336 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1   732558335  2930233340   ee  GPT

Disk /dev/sdc: 3965 MB, 3965190144 bytes
122 heads, 62 sectors/track, 1023 cylinders, total 7744512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1           30256     7692587     3831166    b  W95 FAT32
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/gk802_ubuntu11.10_bin# ./fsl-sdcard-partition.sh /dev/sdc
-bash: ./fsl-sdcard-partition.sh: Permission denied
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/gk802_ubuntu11.10_bin# chmod 677 fsl-sdcard-partition.sh
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/gk802_ubuntu11.10_bin# ./fsl-sdcard-partition.sh /dev/sdc
/dev/sdc does not have partitions mounted...
/dev/sdc does not have partitions mounted...
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.00798393 s, 128 kB/s
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdc: 1023 cylinders, 122 heads, 62 sectors/track

sfdisk: ERROR: sector 178224 does not have an msdos signature
 /dev/sdc: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sdc1         0+  3741-  3742-   3831165+  83  Linux
/dev/sdc2         0      -      0          0    0  Empty
/dev/sdc3         0      -      0          0    0  Empty
/dev/sdc4         0      -      0          0    0  Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdc: 1023 cylinders, 122 heads, 62 sectors/track
Old situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sdc1         0+  3741-  3742-   3831165+  83  Linux
/dev/sdc2         0      -      0          0    0  Empty
/dev/sdc3         0      -      0          0    0  Empty
/dev/sdc4         0      -      0          0    0  Empty
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sdc1        14+  3756-  3742-   3831166   83  Linux
/dev/sdc2         0      -      0          0    0  Empty
/dev/sdc3         0      -      0          0    0  Empty
/dev/sdc4         0      -      0          0    0  Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/dev/sdc does not have partitions mounted...
formating android images
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=ubuntu
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
239520 inodes, 957791 blocks
47889 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=981467136
30 block groups
32768 blocks per group, 32768 fragments per group
7984 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

/dev/sdc does not have partitions mounted...
/dev/sdc
181+1 records in
181+1 records out
185924 bytes (186 kB) copied, 0.0981481 s, 1.9 MB/s
 copy uImage...
3+1 records in
3+1 records out
3955860 bytes (4.0 MB) copied, 0.889995 s, 4.4 MB/s
copy end
copy ubuntu files system...
umount: /mnt/tmp: not found
umount: /dev/sdc1: not mounted
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/gk802_ubuntu11.10_bin# cd ..
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core# ls
bin          data.tar                geekbuying_ubuntu11.10_bin  sd-card
conffiles    debian-binary           gk802_ubuntu11.10_bin       usr
control      etc                     md5sums
control.tar  fbset_2.1-25_armel.deb  postinst
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core# mount /dev/sdc1 sd-card/
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core# cd sd-card/
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/sd-card# ls
bin    dev   lib         mnt   root  selinux      sys         usr  viminfo
boot   etc   lost+found  opt   run   session.vim  tmp         v    wlan.ko
clips  home  media       proc  sbin  srv          unit_tests  var
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core/sd-card# cd ..
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core# umount /dev/sdc1
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core# sync
root@small3:/media/USBdisk1-3TB/gk802_ARM_4core#


It was a 4GB SD card and I open my GK802 and put the 4GB card in it. But I still get a black screen. I tested it on 2 HDMI displays. One a TV and one a Dell monitior. Press Enter after a wile too still just black screen.

I guess just have to wait for a new image yet. Sounds like some can get it to work but I guess it depends on what HDMI display you have.

-Raymond Day


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest