USB Hard drive and usb stick not creating devices

Hardware related problems and workarounds

Re: USB Hard drive and usb stick not creating devices

Postby g3vbv » Thu May 22, 2014 1:08 pm

Result of speedup:-
At first I didn't change from 1920x1080 resolution, no /etc/X11/xorg.conf and everything was OK.

I thought I would change to the recommended 1280x720.

X comes up, eventually, with a green background and a pink foreground.

Reboot - It takes a very long time to present a login screen.

It's sitting there with the unmovable cursor and the task bar incomplete and almost half way up the screen for the last 10 minutes.

Eventually it will be OK, but it takes an age and everything is slow.
slipstream:/home/lancelot # ping parallella-16
PING parallella-16 (81.200.64.50) 56(84) bytes of data.
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=1 ttl=51 time=15.0 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=2 ttl=51 time=13.5 ms
64 bytes from advancedsearch.virginmedia.com (81.200.64.50): icmp_seq=3 ttl=51 time=17.1 ms
That's all wrong.

slipstream:/home/lancelot # ping 192.168.10.209
PING 192.168.10.209 (192.168.10.209) 56(84) bytes of data.
64 bytes from 192.168.10.209: icmp_seq=1 ttl=64 time=0.678 ms
64 bytes from 192.168.10.209: icmp_seq=2 ttl=64 time=0.254 ms
That's OK.

Adding 192.168.10.209 to /etc/hosts on the remote and ssh now works.

15 minutes and X is still not fully up.
17 minutes and the task bar is now at the bottom and mouse cursor is active.
lxterminal with pink menu bar, text is black on a yellow background.

Overall, the speed up instructions has caused the Parallella to crawl.

The following commands across a ssh connection took around 3 minutes to complete.
root@parallella-16:~# mount /dev/mmcblk0p1 /mnt
root@parallella-16:~# cat /sys/class/drm/card0-HDMI-A-1/modes
root@parallella-16:~# ls -l /mnt
total 12791
-rwxr-xr-x 1 root root 8659 May 22 13:33 devicetree.dtb
-rwxr-xr-x 1 root root 8667 May 18 20:51 devicetree.dtb.bak
-rwxr-xr-x 1 root root 9805 May 21 23:00 devicetree.dts
-rwxr-xr-x 1 root root 4045564 Feb 6 14:35 parallella.bit.bin
-rwxr-xr-x 1 root root 4555008 May 21 10:24 uImage
-rwxr-xr-x 1 root root 4468792 May 21 09:24 uImage.bak
root@parallella-16:~#
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: USB Hard drive and usb stick not creating devices

Postby shodruk » Thu May 22, 2014 5:01 pm

The resolution setting of the xorg.conf (Modes "1280x720") must match with the bootargs setting (video=HDMI-A-1:1280x720).
Please confirm it.

(new tips) Remove xscreensaver
viewtopic.php?f=48&p=7871#p7871
Shodruky
shodruk
 
Posts: 464
Joined: Mon Apr 08, 2013 7:03 pm

Re: USB Hard drive and usb stick not creating devices

Postby g3vbv » Thu May 22, 2014 11:29 pm

Screensaver was always disabled.
root@parallella-16:~# cat /etc/X11/xorg.conf
Section "Device"
Identifier "Card0"
Driver "modesetting"
Option "ShadowFB" "True"
Option "SWCursor" "True"
Option "HWCursor" "False"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
SubSection "Display"
#---- Uncomment your preferred mode ----
#Modes "1920x1200"
#Modes "1920x1080"
Modes "1280x720"
#Modes "640x480"
EndSubSection
EndSection

In LXDE I checked the resolution.
root@parallella-16:~# xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 720, maximum 4096 x 4096
HDMI-0 connected 1280x720+0+0 (normal left inverted right x axis y axis) 478mm x 269mm
1920x1080 60.0 + 50.0 59.9
1680x1050 59.9
1280x1024 75.0 60.0
1440x900 75.0 59.9
1280x960 60.0
1152x864 75.0
1280x720 60.0* 50.0 59.9
1440x576 50.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
720x576 50.0
720x480 60.0 59.9
640x480 75.0 72.8 66.7 60.0 59.9
720x400 70.1
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: USB Hard drive and usb stick not creating devices

Postby shodruk » Fri May 23, 2014 4:39 am

We have to purge xscreensaver to disable it completely.

sudo apt-get purge xscreensaver

and type this command and post the output.

cat /proc/cmdline
Shodruky
shodruk
 
Posts: 464
Joined: Mon Apr 08, 2013 7:03 pm

Re: USB Hard drive and usb stick not creating devices

Postby g3vbv » Fri May 23, 2014 10:14 am

root@parallella-16:~# cat /proc/cmdline
root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait devtmpfs.mount=1 video=HDMI-A-1:1280x720@60

Purged xscreensaver and rebooted.

X login screen came up very quickly, full desktop appeared in about 1 minute and response is AOK.

The only remaining issue is pulseaudio which a number of my SDR apps require.
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: USB Hard drive and usb stick not creating devices

Postby shodruk » Fri May 23, 2014 11:50 am

1 minute? That's a bit slow. You can try these settings.

bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";

Compile it to dtb,

Comment out all of the "Modes" line in xorg.conf.

I don't recommend PulseAudio, but if you really need it,

rm ~/.asoundrc

sudo apt-get install pulseaudio

sudo nano /etc/pulse/default.pa

(search and comment out these lines)

### Automatically load driver modules depending on the hardware available
# Ugly hack for Nexus 10
#.ifexists /system/lib/hw/audio.primary.manta.so
load-module module-udev-detect tsched=0
#.else
#load-module module-udev-detect
#.endif

sudo nano /etc/pulse/daemon.conf

(append this line to the bottom of the file)

default-sample-rate = 48000
Shodruky
shodruk
 
Posts: 464
Joined: Mon Apr 08, 2013 7:03 pm

Re: USB Hard drive and usb stick not creating devices

Postby g3vbv » Wed Sep 03, 2014 12:35 pm

I discovered the devices were not created in /dev so created them with "mknod -m 660 /dev/sda b 8 0", "mknod -m 660 /dev/sda1 b 8 1", etc.
root@parallella-16:~# ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 Jan 1 1970 /dev/sda
brw-rw---- 1 root disk 8, 1 Jan 1 1970 /dev/sda1
brw-rw---- 1 root disk 8, 2 Jan 1 1970 /dev/sda2
brw-rw---- 1 root disk 8, 16 Sep 1 15:42 /dev/sdb
brw-rw---- 1 root disk 8, 17 Sep 1 15:42 /dev/sdb1
brw-rw---- 1 root disk 8, 18 Sep 1 15:42 /dev/sdb2
brw-rw-rw- 1 root root 8, 19 Aug 28 13:36 /dev/sdb3

Another problem I discovered . I have a 7 port powered USB hub but only 4 ports are available.
root@parallella-16:~# lsusb
unable to initialize libusb: -99
"usb-devices" however lists the devices connected to all 7 ports.

That limits what I can attach.

Now looking at pulseaudio.
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Re: USB Hard drive and usb stick not creating devices

Postby g3vbv » Wed Sep 03, 2014 12:42 pm

Setting up libpam-systemd:armhf (204-5ubuntu20) ...
start: Job failed to start
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:armhf (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pulseaudio:
pulseaudio depends on libpam-systemd; however:
Package libpam-systemd:armhf is not configured yet.

dpkg: error processing package pulseaudio (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pulseaudio-module-x11:
pulseaudio-module-x11 depends on pulseaudio; however:
Package pulseaudio is not configured yet.

dpkg: error processing package pulseaudio-module-x11 (--configure):
dependency problems - leaving unconfigured
E: Sub-process /usr/bin/dpkg returned an error code (1)
Retired - Senior Staff Specialist Amdahl worldwide supporting AMDAHL/Fujitsu/IBM Mainframes and Sun/Fujitsu SPARC servers.
g3vbv
 
Posts: 30
Joined: Mon Dec 17, 2012 3:25 am
Location: Halesowen, West Midlands, UK

Previous

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 9 guests

cron