Go to advanced search

by Aydan
Mon Sep 18, 2017 12:43 pm
Forum: General discussion
Topic: I don't understand this error message
Replies: 4
Views: 206

Re: I don't understand this error message

Check if you have mixed spaces with tabs in the indentation.
Python3 will complain about mixed indentation.
Python2 will see a tab character like a space character.

Regards
Aydan
by Aydan
Tue Aug 29, 2017 3:35 pm
Forum: Troubleshooting
Topic: raspi-config viewing issue "solved"
Replies: 6
Views: 253

Re: raspi-config viewing issue

Instead to get the screen in blue/grey of raspi-config with selector (red) i have a black and white screen without any selector. This might be due to your ssh session not supporting colours or the ssh server detecting wrong terminal capabilities. Check what terminal emulation (e.g. VT100) is set in...
by Aydan
Thu Aug 24, 2017 7:25 am
Forum: Beginners
Topic: 5.442001] random: nonblocking pool is initialized
Replies: 6
Views: 267

Re: 5.442001] random: nonblocking pool is initialized

Hello Aydan Thanks for replying. So, from what you are saying I've put the monitor driver (The one on the CD that came with the display) in the wrong place. Is there any way to take the driver back out of the sd card so it boots to my tv screen (I'm using that as a monitor when not watching tv). Ju...
by Aydan
Wed Aug 23, 2017 6:03 pm
Forum: Beginners
Topic: 5.442001] random: nonblocking pool is initialized
Replies: 6
Views: 267

Re: 5.442001] random: nonblocking pool is initialized

The screen should work without a driver, since it's HDMI. For the touch function you may need a driver. So to start with, if you have, put Raspbian on a fresh SD card and boot it with the monitor and USB mouse/Keyboard attached. No need to change any setting yet. This should get you to the Raspbian ...
by Aydan
Tue Aug 22, 2017 11:09 am
Forum: Beginners
Topic: 5.442001] random: nonblocking pool is initialized
Replies: 6
Views: 267

Re: 5.442001] random: nonblocking pool is initialized

Hi Michael, It's not an error message. It only tells you that the random number generator has initialized its pool of numbers for non-blocking access. If this is the last message you see, then this means there is no console started on this display. How is the display connected? I suspect the console...
by Aydan
Wed Aug 16, 2017 7:33 am
Forum: Beginners
Topic: Openwrt
Replies: 14
Views: 606

Re: Openwrt

ankur_r wrote:
Tue Aug 15, 2017 11:39 pm
I use dd command for same. i.e.

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd1 <-- This is your problem
the correct command is this:

Code: Select all

dd if=openwrt-15.05.1-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdd
Regards
Aydan
by Aydan
Fri Aug 11, 2017 7:26 am
Forum: General discussion
Topic: A request for a Linux guru
Replies: 10
Views: 633

Re: A request for a Linux guru

Make sure you have kernel version 4.9.34 or later, otherwise the bugfix I linked to will not be in the driver.

Regards
Aydan
by Aydan
Wed Aug 09, 2017 11:08 am
Forum: General discussion
Topic: A request for a Linux guru
Replies: 10
Views: 633

Re: A request for a Linux guru

There was a bug in the driver which didn't correctly initialize the device. This has been fixed in recent raspberry kernel versions. I don't know which one exactly, since I've only confirmed correct function for the RPi-update one. see also https://github.com/raspberrypi/linux/issues/2075 Regards Ay...
by Aydan
Fri Jun 02, 2017 7:57 am
Forum: General discussion
Topic: Sidebar in Blog does not work
Replies: 0
Views: 98

Sidebar in Blog does not work

I noticed the sidebar links for the articles don't work anymore.
All links look like this:
https://www.raspberrypi.org/blog/# <-- notice the empty bookmark reference
So either the bookmarks aren't picked up or they are missing form the page.

Regards
Aydan
by Aydan
Mon May 15, 2017 5:45 pm
Forum: General discussion
Topic: raspi-config problem on net-boot-pi
Replies: 6
Views: 500

Re: raspi-config problem on net-boot-pi

An alternative would be to simply make /boot a subdirectory of the remote booted Pi's NFS root, then make that the directory the TFTP server uses. That won't work for multiple Pi's with individual tftp directories. What should work though is to symlink NFS_root/boot to the tftp location. Regards Ay...
by Aydan
Mon May 15, 2017 11:21 am
Forum: General discussion
Topic: raspi-config problem on net-boot-pi
Replies: 6
Views: 500

Re: raspi-config problem on net-boot-pi

What I did for this situation is to export the tftp directory via NFS and mount it on /boot.
This shoul mak it possible to do kernel/bootloader updates and use raspi-config

Regards
Aydan
by Aydan
Fri Feb 17, 2017 3:30 pm
Forum: General discussion
Topic: Read USB MBR Data and modify
Replies: 6
Views: 523

Re: Read USB MBR Data and modify

Thats cool! But why the seek(512)? surely it starts at offset zero. After changing the MBR a seek(0) would be needed in order to rewind the file and write out the new MBR starting at zero. Or have I missed something? Oops, you are correct: https://en.wikipedia.org/wiki/Master_boot_record @chanduvin...
by Aydan
Fri Feb 17, 2017 3:14 pm
Forum: General discussion
Topic: Read USB MBR Data and modify
Replies: 6
Views: 523

Re: Read USB MBR Data and modify

in linux you can use a blockdevice like a file.

In python for example:

Code: Select all

diskpath="/dev/sdx"
f=open(diskpath,"rb+") #open disk readwrite binary
#read MBR (2nd block)
f.seek(512)
MBR=f.read(512)
#modify MBR

#write MBR
f.seek(512)
f.write(MBR)
run as root

Regards
Aydan
by Aydan
Mon Dec 19, 2016 8:58 pm
Forum: General discussion
Topic: Raspian to conservative / old compiler / cross-compiler
Replies: 26
Views: 2615

Re: Raspian to conservative / old compiler / cross-compiler

If you use Eclipse for C/C++ development, you'll only have to point it to your library headers and it will do syntax checking and autocomplete by doing code analysis without compiling. It only complains if it's missing libraries. This is worse in e.g. Python for some platform specific binary extensi...
by Aydan
Mon Dec 19, 2016 4:43 pm
Forum: General discussion
Topic: Raspian to conservative / old compiler / cross-compiler
Replies: 26
Views: 2615

Re: Raspian to conservative / old compiler / cross-compiler

Just to add my 2 cents worth. I mostly develop in python on my Win7 machine in Eclipse/Pydev, but I develop remotely. Meaning all the sources are on the Pi, shared via Samba. I have a little debug wrapper script that connects automatically to the PyDev debug server on the machine i'm sshing in from,...
by Aydan
Tue Nov 29, 2016 10:54 pm
Forum: Advanced users
Topic: udev rule for identical USB cameras
Replies: 11
Views: 1812

Re: udev rule for identical USB cameras

I'm sure if you'd analyze the outputs of "udevadm info" for the two camera ports, you'd be able to find a distinguishing attribute to only trigger for the proper port.

Regards
Aydan
by Aydan
Tue Nov 15, 2016 2:04 pm
Forum: Troubleshooting
Topic: B+: Boots only after second power cycle
Replies: 11
Views: 882

Re: B+: Boots only after second power cycle

OK, the partition is not full.
Could you run an "fsck -f" on that partition and see if it then boots properly?
The partition needs to be unmounted first.

Regards
Aydan
by Aydan
Tue Nov 15, 2016 12:27 pm
Forum: Advanced users
Topic: Differentiate four of the same USB devices.
Replies: 9
Views: 975

Re: Differentiate four of the same USB devices.

That would be great, thank you. Though the problem is, because different people will set up this exhibition artwork, that the cameras could be connected to different USB ports each time. I labeled them, but I have to also take care of someone who just don’t care about the labels. So addressing each...
by Aydan
Tue Nov 15, 2016 12:25 pm
Forum: Advanced users
Topic: Differentiate four of the same USB devices.
Replies: 9
Views: 975

Re: Differentiate four of the same USB devices.

have a look at this thread:
viewtopic.php?f=29&t=145943

Regards
Aydan
by Aydan
Tue Nov 15, 2016 12:13 pm
Forum: Troubleshooting
Topic: B+: Boots only after second power cycle
Replies: 11
Views: 882

Re: B+: Boots only after second power cycle

Hello Aydan, Not sure if this is what you meant : - I burned an SD card with the shrunk image - put it in a usb adapter - insert it into a running Rpi - ran few commands below Almost, you'll need to mount the 2nd partition of the sd-card. You mounted the first one, which only holds the boot files, ...
by Aydan
Mon Nov 14, 2016 6:37 pm
Forum: Troubleshooting
Topic: B+: Boots only after second power cycle
Replies: 11
Views: 882

Re: B+: Boots only after second power cycle

For some time now, on "first boot" of a newly written card (from an *.img file), Raspbian Jessie automatically expands the file system to fill the space available on the uSDHC card**. Perhaps you "overshrunk" things and thus that expansion's the only thing that can happen on "first boot" of your ca...
by Aydan
Mon Nov 14, 2016 6:35 pm
Forum: Troubleshooting
Topic: B+: Boots only after second power cycle
Replies: 11
Views: 882

Re: B+: Boots only after second power cycle

Please put one of those images on an SDcard and mount its root partition without booting and show it's "df".
Maybe there's some temp files still on the disk that get deleted at first boot.
Also, how long did you leave the Pi when it was stuck?
Maybe it was doing something longwinded.

Regards
Aydan
by Aydan
Mon Nov 14, 2016 2:11 pm
Forum: Troubleshooting
Topic: B+: Boots only after second power cycle
Replies: 11
Views: 882

Re: B+: Boots only after second power cycle

How much free space is there after shrinking?
by Aydan
Thu Nov 10, 2016 7:26 am
Forum: Advanced users
Topic: udev rule for identical USB cameras
Replies: 11
Views: 1812

Re: udev rule for identical USB cameras

Please read my last comment again, it's KERNEL=="video*", that's an asterisk at the end. This will match anything that starts with "video"
by Aydan
Wed Nov 09, 2016 9:47 am
Forum: Advanced users
Topic: udev rule for identical USB cameras
Replies: 11
Views: 1812

Re: udev rule for identical USB cameras

KERNEL and KERNELS don't match. KERNEL="video" is no use. If you use KERNEL="video * " it will work, but since you don't need it just leave it out. I think you can also leave out either the SUBSYSTEM or the DRIVERS. One of them should be enough. Of course it doesn't work if you use KERNEL="video3",...

Go to advanced search