XJUbunTab distro for Baytrail tablets

Paul Mansfield paul at mansfield.co.uk
Fri Apr 22 23:02:21 CEST 2016


On 21 April 2016 at 22:55, Paul Mansfield <paul at mansfield.co.uk> wrote:
> I'll try downloading his latest image; however, I've never been able
> to boot previous versions, maybe this time it'll work.

sadly, no.

The ISO has two partitions, you can mount them thus

#mkdir /mnt/xjx1 /mnt/xjx2
#mount -o ro /home/paulm/download/linux/XJX64bits-16.04.08-dist.iso
/mnt/xjx1
#
​ ​
mount -o ro,offset=172032
/home/paulm/Downloads/linux/XJX64bits-16.04.08-dist.iso /mnt/xjx2

(the 172032 is the starting
​byte offset
 of the second partition,
​which is the first section of the partition - ​
from doing "fdisk -l
/home/paulm/download/linux/XJX64bits-16.04.08-dist.iso"
​- ​
multiplied by the sector size
​i.e. 512
)

It appears he only put the 64 bit EFI files on that second partition.

#
​ ​
ll /mnt/xjx2/efi/boot/
total 2298
drwxr-xr-x 2 root root    2048 Jan 22  2015 ./
drwxr-xr-x 3 root root    2048 Jan 22  2015 ../
-rwxr-xr-x 1 root root 1355736 Jan 22  2015 bootx64.efi
-rwxr-xr-x 1 root root  993144 Jan 22  2015 grubx64.efi


​since the second partition is vfat, it was possible to hot patch the file.
I copied the XJX iso, and mounted the 2nd partition as rw, deleted the
efi/boot/ files and replaced them with the ones from debian (I loopback
mounted with offset the debian-8.3.0-amd64-i386-netinst.iso in the same
way)​. I then used rsync --inplace --no-whole-file
​to patch the USB flash image rather than rewrite it from scratch. Just to
be sure I used "cmp" to compare the patched ISO with the USB stick.


And after all that, guess what? Yes, it didn't work.

:-(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/click/attachments/20160422/f29276a5/attachment.html>


More information about the click mailing list