[solved] uEnv.txt empty

This forum is for supported devices using an ARMv7 Allwinner SoC.

Re: uEnv.txt empty

Postby xanb » Sat Dec 06, 2014 5:50 pm

Now I have another problem: I tried to mount my SSD harddrive as rootfs. I put

$this->bbcode_second_pass_code('', '
# cat /boot/uEnv.txt
optargs=root=/dev/sda1 rootwait ethaddr=00:CE:39:B7:74:4E
')

but it seems that the kernel also wants to mount / in /dev/mmcblk0p1 (dmesg output):
$this->bbcode_second_pass_code('', '
0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootwait ethaddr=00:CE:39:B7:74:4E root=/dev/mmcblk0p1 rw rootwait video=
[ 8.638629] EXT4-fs (mmcblk0p1): re-mounted. Opts: discard
')

Why?
In my case, I try $this->bbcode_second_pass_code('', 'root=/dev/sda1 rootwait') outside the optargs, but it seems ignored.
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: uEnv.txt empty

Postby xanb » Sat Dec 06, 2014 6:09 pm

I want to know that the systems mount / on SATA $this->bbcode_second_pass_code('', '# mount
/dev/sda1 on / type ext4 (rw,relatime,discard,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=391696k,nr_inodes=97924,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda6 on /var type ext4 (rw,relatime,discard,data=ordered)
/dev/sda5 on /home type ext4 (rw,relatime,discard,data=ordered)
/dev/sda7 on /var/log type ext4 (rw,relatime,discard,data=ordered)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=98020k,m'), but I want to know how to remove the line of microSSD in kernel line
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: uEnv.txt empty

Postby xanb » Sat Dec 06, 2014 6:51 pm

I think, but I'm not sure, is to put
$this->bbcode_second_pass_code('', '
mmcroot=/dev/sda1 rw rootwait
optargs=ethaddr=00:CE:39:B7:74:4E
')
in the microssd card (dmesg output):

$this->bbcode_second_pass_code('', '
[ 0.000000] Kernel command line: console=ttyS0,115200 ethaddr=00:CE:39:B7:74:4E root=/dev/sda1 rw rootwait video=
')

MicroSSD mount is disappeared (dmesg):
$this->bbcode_second_pass_code('', '
# dmesg | grep mount
[ 3.376544] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[ 3.458405] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
[ 3.545402] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 3.566174] devtmpfs: mounted
[ 4.722575] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[ 4.759885] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 5.569033] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 5.740324] EXT4-fs (sda1): re-mounted. Opts: discard
[ 9.294373] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: discard
[ 9.412275] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: discard
[ 9.585473] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: discard
')
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: [solved] uEnv.txt empty

Postby xanb » Sun Dec 07, 2014 5:18 pm

It seems $this->bbcode_second_pass_code('', 'rootfstype') nop $this->bbcode_second_pass_code('', 'elevator') do NOT work in optargs:
$this->bbcode_second_pass_code('', '
# cat /boot/uEnv.txt
mmcroot=/dev/sda1 rw rootwait
optargs=ethaddr=00:CE:39:B7:74:4E rootfstype=ext4
')
and
$this->bbcode_second_pass_code('', '
mmcroot=/dev/sda1 rw rootwait
mmcrootfstype=ext4
optargs=elevator=noop ethaddr=00:CE:39:B7:74:4E
')
don't work.
dmesg tells me:
$this->bbcode_second_pass_code('', '
[ 3.417245] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[ 3.498335] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities
')
and noop is not set:
$this->bbcode_second_pass_code('', '
# cat /sys/block/sda/queue/scheduler
noop deadline [cfq]
')
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: [solved] uEnv.txt empty

Postby pepedog » Sun Dec 07, 2014 5:56 pm

These messages can, and should be, ignored
$this->bbcode_second_pass_code('', '[ 3.417245] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[ 3.498335] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [solved] uEnv.txt empty

Postby xanb » Sun Dec 07, 2014 6:20 pm

Thanks, pepedog, and what about elevator=noop? How to set it?
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: [solved] uEnv.txt empty

Postby pepedog » Sun Dec 07, 2014 6:49 pm

Which kernel package do you have installed?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [solved] uEnv.txt empty

Postby xanb » Sun Dec 07, 2014 7:22 pm

This:
$this->bbcode_second_pass_code('', '
[root@serviedre ~]# pacman -Qs kernel
local/iptables 1.4.21-1
Linux kernel packet control tool
local/kmod 19-1
Linux kernel module handling
local/linux-api-headers 3.16.2-1
Kernel headers sanitized for use in userspace
local/linux-sun7i 3.4.90-5
The Linux Kernel and modules - sun7i
')
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

Re: [solved] uEnv.txt empty

Postby pepedog » Sun Dec 07, 2014 7:49 pm

Maybe stick quotes around things
optargs="elevator=noop ethaddr=00:CE:39:B7:74:4E"
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [solved] uEnv.txt empty

Postby xanb » Sun Dec 07, 2014 7:56 pm

But why ethaddr is got?
xanb
 
Posts: 41
Joined: Sun Dec 08, 2013 9:39 pm

PreviousNext

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 9 guests