Go to advanced search

by doublehp
Sun Apr 16, 2017 8:12 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 33
Views: 6767

Re: broken filesystem, e2fsck can not fix things

You identify /dev/sdk2 not /dev/sda2. Are you trying to argue with me or make me look stupid? I was lucky to be able to run dmesg inside the machine while it was already broken; so, in some logs, it's sda2; as stated, the machine never rebooted; so, all fsck are run from an other workstation where ...
by doublehp
Tue Apr 11, 2017 9:15 am
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 33
Views: 6767

Re: broken filesystem, e2fsck can not fix things

# mkfs -n /dev/sdf2 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 944704 inodes, 3774464 blocks 188723 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=38...
by doublehp
Tue Apr 11, 2017 8:57 am
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 33
Views: 6767

Re: broken filesystem, e2fsck can not fix things

E2FS is really robust and e2fsck can do a really nice job of fixing a damaged file system. But as you point out you have bad superblocks. The suggestion of using 8193 as an alternate is just a suggestion, you can get a list of all alternate superblocks with mke2fs -n /dev/sdk2, then try alternate b...
by doublehp
Mon Apr 10, 2017 7:59 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 33
Views: 6767

Re: broken filesystem, e2fsck can not fix things

Quick reply before bed. No, I suspect bad blocks; I do not have any proof; and quicj test have not found any. After the fsck I did yesterday, it did not boot. I see a kernel log, but can't read bottom of screen. sda1 (/boot) is fine; sda2 (/) is the broken one. Never heard of alternative drives. 16G...
by doublehp
Mon Apr 10, 2017 6:01 am
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 33
Views: 6767

broken filesystem, e2fsck can not fix things

Hello. rPi 2B. 16GB Sandisk Ultra. Distro is from KeiDei (for their screens) (Raspbian modified with their kernel and video driver). After 6 months using it, and 30 days uptime, system seems not running fine; from live system I got dmesg: [ 6.965717] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 7...
by doublehp
Fri Mar 24, 2017 7:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: KeDei 3.5 inch 480x320 TFT lcd from ali
Replies: 235
Views: 201011

Re: KeDei 3.5 inch 480x320 TFT lcd from ali

No, just some people have problems with i2c interface on sys-images from kedei. In some versions of their ROM, they had removed many critical I2C tools; then, put them back. They are disabling completely all I2C features on official I2C pins. I have found several workarounds: https://www.raspberryp...
by doublehp
Fri Feb 24, 2017 2:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: KeDei 3.5 inch 480x320 TFT lcd from ali
Replies: 235
Views: 201011

Re: KeDei 3.5 inch 480x320 TFT lcd from ali

Saper_2 : my issue is fixed now: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=173272 There used to be bugs in the KeDei ROMs (they had removed the I2C drivers around mid 2016, and put it back later). But I2C is still disabled on legacy pins (including ... they disabled the I2C bus on non ...
by doublehp
Mon Feb 20, 2017 5:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C bitbanging ?
Replies: 5
Views: 3806

Re: I2C bitbanging ?

I was 100% convienced the test would fail, and I would come back here to say you were wrong. You were right: # tail -n1 /boot/config.txt dtoverlay=i2c-gpio,i2c_gpio_sda=30,i2c_gpio_scl=31,i2c_gpio_delay_us=5 # ls /dev/i2c-3 /dev/i2c-3 # i2cdetect -y 3 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- ...
by doublehp
Fri Feb 03, 2017 9:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C bitbanging ?
Replies: 5
Views: 3806

Re: I2C bitbanging ?

I will try your solution tomorrow, but:
- i could not find in google a trivial tuto like the one you just gave me
- depending on how far KeDei disabled stuff in the kernel config, your solution may fail as well.

But for community archives, I will give it a try.
by doublehp
Fri Feb 03, 2017 8:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C bitbanging ?
Replies: 5
Views: 3806

Re: I2C bitbanging ?

Joan, thank you. It does the job. I will have to write wrappers, and change a few things, but it's in the scope of what I can do. I was very stupid; I forgot to put pullup on SCL. But even with the pullup, my code still does not work: [email protected]:~# ./i2c.sh * 0x27 : ok * 0x48 : NOPE * 0x72 : NOPE * 0x...
by doublehp
Wed Feb 01, 2017 6:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C bitbanging ?
Replies: 5
Views: 3806

I2C bitbanging ?

Hello. I have a few I2C probes, and they stopped working after some update. I used to use official Raspbian, but I am not trying to use a KeDei screen on my rPi-v1. http://kedei.net/raspberry/raspberry.html works fine, as long as you don't need I2C. All I2C pins seem to refuse to move, even when usi...
by doublehp
Wed Feb 01, 2017 12:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: KeDei 3.5 inch 480x320 TFT lcd from ali
Replies: 235
Views: 201011

Re: KeDei 3.5 inch 480x320 TFT lcd from ali

I am using the official ROMs from manufacturer: http://kedei.net/raspberry/raspberry.html it was working fine for years, untill I need I2C. Some people complained i2cdetect was not included in some versions of the software ( rpi_35_v6_0_2_jessie_kernel_4_4_11.rar ). After upgrade to rpi_35_v6_1_2_3_...
by doublehp
Tue Jan 24, 2017 6:40 pm
Forum: Troubleshooting
Topic: module i2c missing
Replies: 7
Views: 2832

Re: module i2c missing

I also had this issue. I had downloaded rpi_35_v6_0_2_jessie_kernel_4_4_11.rar in september 2016, and had this issue. I redownlaoded today rpi_35_v6_1_2_3_jessie_kernel_4_4_19.rar from http://kedei.net/raspberry/raspberry.html and it seems to contain the driver (according to /lib/modules directory; ...
by doublehp
Thu Sep 01, 2016 8:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART receive buffer?
Replies: 8
Views: 12741

Re: UART receive buffer?

You were doing echo "foo" > /dev/ttyAMA0 cat /dev/ttyAMA0 Which can not work as you want, because, when data is sent, no process is reading the port, so, data is lost. You can easily bypass the issue by many ways: cat /dev/ttyAMA0 & pid=$$ echo "foo" > /dev/ttyAMA0 kill $pid or { echo "foo" > /dev/t...
by doublehp
Sat Apr 12, 2014 11:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Which 13-15" DSI screen ?
Replies: 3
Views: 1021

Re: Which 13-15" DSI screen ?

Did not read carefully. An additional binary blob might be required for the DSI port to function correctly (or function at all). When or if such a blob will be made available is unknown. Update 04 Jun 2013: "DSI will get done though - there are 1.5M boards out there with the connector on - that woul...
by doublehp
Sat Apr 12, 2014 10:40 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Which 13-15" DSI screen ?
Replies: 3
Views: 1021

Which 13-15" DSI screen ?

I (technically a friend of mine, who hardly speaks english) want a 13"-15" (@1920x1080 or 1200 !!!) screen for some RPi. Possibly directly plugged on the DSI plug. We are not looking for a classic monitor brand new in a nice plastic casing; we need a bare screen to insert it in some funky project. S...
by doublehp
Mon Jan 21, 2013 8:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can not change I2C baud rate ?
Replies: 3
Views: 2005

Re: Can not change I2C baud rate ?

I am now checking signal with a scope: 3815 produces a good signal around expected frequency. 1.5M produces a good signal (baud duration has the expected time length). But ... there is a but. The frame is sent at the requested rate, but words are not consecutive at all: words are seperated by a long...
by doublehp
Mon Jan 21, 2013 8:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can not change I2C baud rate ?
Replies: 3
Views: 2005

Re: Can not change I2C baud rate ?

* 3900 real 0m0.380s real 0m0.377s real 0m0.383s real 0m0.377s real 0m0.381s * 3800 real 0m0.020s real 0m0.016s real 0m0.021s real 0m0.015s real 0m0.020s * 3815 real 0m0.394s real 0m0.385s real 0m0.390s real 0m0.385s real 0m0.388s * 3814 real 0m0.014s real 0m0.018s real 0m0.014s real 0m0.018s real 0...
by doublehp
Mon Jan 21, 2013 8:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can not change I2C baud rate ?
Replies: 3
Views: 2005

Re: Can not change I2C baud rate ?

This is quiet strange to me ... definitely a bug ... somewhere. And definitely gonna do my own 500B manually: bitbanging :/ again :/ once more :'( [email protected]:~# for i in 100000 50000 33000 10000 5000 3300 1000 500 333 100 50 33 ; do rmmod i2c_bcm2708 ; sleep 1 ; modprobe i2c_bcm2708 baudrate=...
by doublehp
Mon Jan 21, 2013 7:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can not change I2C baud rate ?
Replies: 3
Views: 2005

Can not change I2C baud rate ?

I want to slow down my I2C bus. I have read in various places that it's ... hard, or impossible. The default baudrate is 100kB; most devices accept up to 400kB, and some times more (up to 4MB). I want to slow down quiet much; down to 500Bauds. I tried to do it the hard way: kernel hacking. After rea...
by doublehp
Sun Jan 06, 2013 10:25 pm
Forum: General programming discussion
Topic: Can we control the on-board leds
Replies: 59
Views: 126369

Re: Can we control the on-board leds

I am asking the question about the LAN9512 in there: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=44&t=28624 Reusing the existing 3 LEDs is possible by software, but needs to rebuild the kernel. I think (hope) that the other 5 pins can be used by compiling new C code, but without rebuilding the...
by doublehp
Sun Jan 06, 2013 10:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using GPIO of smsc9512 for more LEDs ?
Replies: 2
Views: 1812

Using GPIO of smsc9512 for more LEDs ?

I am looking for more GPIOs, more LEDs :) I found that the SMSC9512 has 8 GPIOs, and only 3 are used. That's at least 5 free pins to me. 9512 doc: http://www.smsc.com/Downloads/SMSC/Downloads_Public/Data_Sheets/9512.pdf GPIO 0 to 2 are used for LEDs: GPIO0 is FDX, pin 20 GPIO1 is LNK, pin 21 GPIO2 i...
by doublehp
Sat Dec 29, 2012 12:20 am
Forum: General discussion
Topic: Several feature requests for the next version
Replies: 14
Views: 2541

Re: Several feature requests for the next version

Since end 2010, I know that ver B is the definitive version. Still, if there is any chance to ever see a version C, I take it. And if thousands of people like come to ask "add 10% more features, and we pay 50% more", I would be surprised the fundation will stick to ver B. I am one. All will depend o...
by doublehp
Thu Dec 27, 2012 7:00 pm
Forum: General discussion
Topic: Several feature requests for the next version
Replies: 14
Views: 2541

Re: Several feature requests for the next version

I don't deny thay other people may have adresse the same querries; but this is the FC section; and the dev team need to know what the users want. So, I tell what I want. As long as the dev team will not make a vote web page, i believe that the team will work on what's most asked. I made my message s...
by doublehp
Thu Dec 27, 2012 4:25 pm
Forum: General discussion
Topic: Several feature requests for the next version
Replies: 14
Views: 2541

Several feature requests for the next version

1: PXE ... i don't think I need to comment or justify this. 2: POE ... same. Just obvious. 3: USB-client. That's gonna be a bit more tricky. Some mobiles phones (both in the same plug), and some printers (two seperate plugs) can act as USB host and USB client. It is usefull to make flexible products...

Go to advanced search