Hello,
We build our system on Host PC Ubuntu 14.04 and tar the image as ***.tar.gz.
It’s OK to untar this ***.tar.gz and flash the image to our TK1 board on other Host PC Ubuntu 14.04.
But when we download this ***.tar.gz to a Host PC Ubuntu 16.04 and untar this ***.tar.gz then flash the image to our TK1 board.
There are somethings strange on the TK1 board system.
1.when we open a application window, the tool bar of this window keep show(refer to 2.png) and disappear(refer to 1.png) repeated. So the window look like keep beating.
2.system won’t mount USB disk automatically when we plug in a USB disk.
(maybe there will be other strange things we don’t find now)
Then on a Host PC Ubuntu 16.04 I mount the decompressed image in a Host PC Ubuntu 14.04 through NFS.
And copy this image to Host PC Ubuntu 16.04 then flash this image to our TK1 board.
It’s OK as we flash the image in a Host PC Ubuntu 14.04.
Therefore it seems it’s the process of untar on Host PC Ubuntu 16.04 that cause the issue I mentioned in the begining.
So I want to find out what’s the difference of untar on Host PC Ubuntu 14.04 and Host PC Ubuntu 16.04.
I do this experiment:
- on Host PC Ubuntu 14.04:
$ sudo tar jxpf Tegra124_Linux_R21.4.0_armhf.tbz2
$ cd Linux_for_Tegra/rootfs/
$ sudo tar jxpf ../../Tegra_Linux_Sample-Root-Filesystem_R21.4.0_armhf.tbz2
$ cd ..
$ sudo ./apply_binaries.sh
$ cd ..
$ sudo tar jcpf Linux_for_Tegra_1404.tar.gz Linux_for_Tegra
and transfer “Linux_for_Tegra_1404.tar.gz” to Host PC Ubuntu 16.04
- on Host PC Ubuntu 16.04:
$ sudo tar jxpf Tegra124_Linux_R21.4.0_armhf.tbz2
$ cd Linux_for_Tegra/rootfs/
$ sudo tar jxpf ../../Tegra_Linux_Sample-Root-Filesystem_R21.4.0_armhf.tbz2
$ cd ..
$ sudo ./apply_binaries.sh
$ cd ..
$ sudo tar jcpf Linux_for_Tegra_1604.tar.gz Linux_for_Tegra
put “Linux_for_Tegra_1404.tar.gz” and “Linux_for_Tegra_1604.tar.gz” to a new folder on Host PC Ubuntu 16.04.
$ sudo tar jxpf Linux_for_Tegra_1404.tar.gz
$ stat Linux_for_Tegra/rootfs/usr/bin/crontab
File: 'Linux_for_Tegra/rootfs/usr/bin/crontab'
Size: 26620 Blocks: 56 IO Block: 4096 regular file
Device: 802h/2050d Inode: 49939634 Links: 1
Access: (2755/-rwxr-sr-x) Uid: ( 0/ root) Gid: ( 107/ crontab)
Access: 2018-12-21 10:36:44.184215657 +0800
Modify: 2015-04-02 06:59:37.000000000 +0800
Change: 2018-12-21 10:36:44.184215657 +0800
Birth: -
$ sudo rm -rf Linux_for_Tegra
$ sudo tar jxpf Linux_for_Tegra_1604.tar.gz
$ stat Linux_for_Tegra/rootfs/usr/bin/crontab
File: 'Linux_for_Tegra/rootfs/usr/bin/crontab'
Size: 26620 Blocks: 56 IO Block: 4096 regular file
Device: 802h/2050d Inode: 48895489 Links: 1
Access: (2755/-rwxr-sr-x) Uid: ( 0/ root) Gid: ( 103/systemd-network)
Access: 2018-12-21 10:40:12.155241694 +0800
Modify: 2015-04-02 06:59:37.000000000 +0800
Change: 2018-12-21 10:40:12.155241694 +0800
Birth: -
One thing I found in this experiment is that when we tar the Linux_for_Tegra on Ubuntu 14.04 and untar it on Ubuntu 16.04, some files’s groud id would be modified. (or tar on Ubuntu 16.04 and untar it on Ubuntu 14.04)
(the ground id will keep the same if tar on Ubuntu 14.04 and untar it on Ubuntu 14.04,
tar on Ubuntu 16.04 and untar it on Ubuntu 16.04)
For example, it should be in the TK1 board system:
$ ls /usr/bin/crontab -l
-rwxr-sr-x 1 root crontab 26620 Apr 1 2015 /usr/bin/crontab
But it becomes this when we flash the image on Host PC Ubuntu 16.04
$ ls /usr/bin/crontab -l
-rwxr-sr-x 1 root fuse 26620 Apr 1 2015 /usr/bin/crontab
You can use “Linux_for_Tegra_1404.tar.gz” on a Host PC Ubuntu 16.04 to flash the Jetson TK1 Board.
You will also see the phenomenon “system won’t mount USB disk automatically when we plug in a USB disk.”
(window beating seems also related to /home/ubuntu/.config/dconf/user, so you won’t see it in this case)
My question is:
- Besides group id, do you know what is modified when we tar on Ubuntu 14.04 and untar it on Ubuntu 16.04.
- How do you tar “Tegra_Linux_Sample-Root-Filesystem_R21.4.0_armhf.tbz2”? the files’s group id seems the same
when it is untar on Ubuntu 14.04 and Ubuntu 16.04. - Is there a way we can tar the image on Ubuntu 14.04 and untar it on Ubuntu 16.04 then flash the TK1 board
and not “system won’t mount USB disk automatically when we plug in a USB disk.”
Thanks!