Re: [beagleboard] Beagle Board Rev. C3 booting problem

2016-11-04 Thread Toan Pham
mkstart,

try to add the following parameters to the /uEnv.txt file, append it right
after rootwait

earlyprintk=ttyO2,115200n8 earlyinitcall initcall_debug


Hopefully, you'll see more debug messages!


On Thu, Nov 3, 2016 at 10:54 AM, mkstart 
wrote:

> I am trying to boot linux on Beagle Board Rev. C3 with no success. Steps I
> took for booting is taken from this wiki https://eewiki.net/
> display/linuxonarm/BeagleBoard . It is created by Robert Nelson. I can
> see that U-Boot is started and trying to start Linux kernel, but as control
> is passed to kernel I stop getting output. It looked like low-level debug
> is not configured for OMAP3. I tried to recompile and configure kernel. In
> menuconfig I select Kernel hacking ---> Kernel low-level debugging
> functions ---> Kernel low-level debugging port and I select "Kernel
> low-level debugging messages via OMAP3 UART3". I also select Early printk(I
> am not sure if I need this). After compiling I have no progress. I also
> connect monitor via hdmi and I see yellow screen only.
> Could you please give me some idea?
>
> This is my output:
> U-Boot 2016.09-dirty (Nov 02 2016 - 12:23:39 +0100)
>
> OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 MHz
> OMAP3 Beagle board + LPDDR/NAND
> I2C:   ready
> DRAM:  256 MiB
> NAND:  256 MiB
> MMC:   OMAP SD/MMC: 0
> *** Warning - bad CRC, using default environment
>
> Beagle Rev C1/C2/C3
> Timed out in wait_for_event: status=1000
> Check if pads/pull-ups of bus are properly configured
> No EEPROM on expansion board
> Timed out in wait_for_bb: status=1000
> No EEPROM on expansion board
> OMAP die ID: 3d03040323090b01e00a
> Net:   usb_ether
> Error: usb_ether address not set.
>
> Hit any key to stop autoboot:  0
> switch to partitions #0, OK
> mmc0 is current device
> SD/MMC found on device 0
> Checking for: /uEnv.txt ...
> Checking for: /boot/uEnv.txt ...
> 23 bytes read in 11 ms (2 KiB/s)
> Loaded environment from /boot/uEnv.txt
> Checking if uname_r is set in /boot/uEnv.txt...
> Running uname_boot ...
> loading /boot/vmlinuz-4.7.8-armv7-x3 ...
> 6089504 bytes read in 543 ms (10.7 MiB/s)
> loading /boot/dtbs/4.7.8-armv7-x3/omap3-beagle.dtb ...
> 109840 bytes read in 277 ms (386.7 KiB/s)
> debug: [console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4
> rootwait musb_hdrc.fifo_mode=5] ...
> debug: [bootz 0x8200 - 0x8800] ...
> ## Flattened Device Tree blob at 8800
>Booting using the fdt blob at 0x8800
>Loading Device Tree to 8ffe2000, end 8d0f ... OK
>
> Starting kernel ...
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/06cc049f-a321-4b2a-aac5-bd9e9853a878%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAGNmLEMQXFg%3DZpiTHMw3amV0DaBV2sud3b%2BeUmDp89Bo2pn4Aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] BeagleBoard-Xm not boot

2016-07-12 Thread Toan Pham
​>> I connected the board to the pc, by the serial cable to usb, using the
terminal emulator with command: sudo putty /dev/ttyUSB0. (but i do not know
if because the cable not is crossed or the port disabled)

You should hookup the debug port with a cross over serial cable and let us
know.



>> When it energized by the DC connector to 5V / 1A

Also, you should use a 5V/ 3A power supply.  I have had problems with the
BB not booting because of the power supply source.


TP

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAGNmLEOeg2mQuFQuObH1S%2BYnYJk9MXqw0bGDowrSshDGeHoD%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] openwrt | sysupgrade

2016-07-12 Thread Toan Pham
>>  of course we know that openWRT is not supported by the BBB.

The other way around, you mean?


>> we sure wanna use the sysupgrade on our gateway (openWRT). So is there
anyone who can help us out, and bypass this failure so we can use the
sysupgrade command smooth in future use ?

So, I am assuming that you're running openwrt on the BBB black already.
Have you try it with the --force command parameter?


-TP

​

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAGNmLEMuXKQmw_puZct-qO%3DBgn9Myu_N_LgX9nRx%3DMb-jt6Zbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Linux-firmware for Realtek rtl8192cu wifi dongle

2015-03-09 Thread Toan Pham
Have you checked if you have the following firmware files:

/lib/firmware/rtlwifi/rtl8192cufw.bin
/lib/firmware/rtlwifi/rtl8192cufw_A.bin
/lib/firmware/rtlwifi/rtl8192cufw_B.bin
/lib/firmware/rtlwifi/rtl8192cufw_TMSC.bin


It is also possible to modify the driver to bypass firmware loading for
that chipset and it will work just fine.  (I have done it before)






On Fri, Mar 6, 2015 at 11:39 PM, dungnb.fe...@gmail.com wrote:

 Dear
 I'm using buildroot to build a custom root file system for BeagleBone. My
 application uses a wifi dongle (Realtek 8192 chipset). I rebuilt kernel
 image (ver 3.2.0) and the image and wifi dongle work well with Debian root
 file system. My problem is : the built buildroot root file system get
 firmware error when modprobe rtl8192cu:

 # modprobe rtl8192cu
 [  194.077442] cfg80211: Calling CRDA to update world regulatory domain
 Feb 15 08:01:23 beaglebone kern.info kernel: [  194.077442] cfg80211:
 Calling CRDA to update world regulatory domain
 [  194.171603] rtl8192cu: MAC address: 00:0f:13:59:0f:e1
 [  194.176981] rtl8192cu: Board Type 0
 Feb 15 08:01:23 beaglebone kern.info kernel: [  194.171603] rtl8192cu:
 MAC address: 00:0f:13:59:0f:e1
 Feb 15 08:01:23 beaglebone kern.info kernel: [  194.176981] rtl8192cu:
 Board Type 0
 [  255.203972] usbcore: registered new interface driver rtl8192cu
 # Feb 15 08:02:24 beaglebone kern.debug kernel: [  255.203643]
 rtl8192cu:rtl92cu_init_sw_vars():0-0 Failed to request firmware!
 Feb 15 08:02:24 beaglebone kern.debug kernel: [  255.203668]
 rtlwifi:rtl_usb_probe():0-0 Can't init_sw_vars.
 Feb 15 08:02:24 beaglebone kern.info kernel: [  255.203972] usbcore:
 registered new interface driver rtl8192cu


 I also chose the option: Target packages - Hardware handling - Frimware
 - wifi firmware:
  [ ] Marvell Wifi-Ex SD 8787
  [ ] Ralink rt2501/rt61
  [ ] Ralink rt73
  [ ] Ralink rt27xx/rt28xx/rt30xx
  [*] Realtek 81xx
  [*] Realtek 87xx
  [*] Realtek 88xx
  [*] TI wl127x
  [*] TI wl128x
  [ ] TI wl18xx
 But it can not change the error
 Please help me
 Thank you

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: How to build ffmpeg for arm

2014-12-12 Thread Toan Pham
​Don has a good point...

Trust me, even if you finished compilation of ffmpg, other packages that
depend on ffpmg backend are really hard to build.  It is a dependency
cluster; dont try if you dont know what to do,,,


But back to your question; ** hint hint, install the cross compiler first **

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] CAN bus recovery

2014-09-11 Thread Toan Pham
​Brent,

have you tried to use can-utils to dump traffic on the canbus when the NIC
is found in that bad state?  AFAIK, socketCAN implementation on linux does
not utilize ID filtering on the can transceiver, it is done at the
SocketCAN api level.  You maybe able to see traffic.  Also, what can
transceiver are you using?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Cross Compilation: standard c++ functions are unavailable

2013-12-09 Thread Toan Pham
its always better if you include your sourcecode.


did you link with stdc++ library?

On Mon, Dec 9, 2013 at 3:37 PM,  dmitryp...@gmail.com wrote:

 Hi everyone, I was interested in some help with a basic cross-compilation
 error for Beaglebone Black. This is in Eclipse, in Ubuntu, I'm getting a
 Symbol 'cout' could not be resolved error. I have all of my include and
 library path directories set up correctly, and I can see a list of functions
 when I type std:: but cout is not there ?! I'm new to eclipse and linux
 programming, my Libraries field is empty, could this be the cause? What
 libraries should I add.

 iostream is included, c++ versions are 4.6 and 4.6.3
 The project compiles when I don't have a cout statement.

 Ubuntu also won't recognize the command arm-linux-gnueabi-. Could this be
 because arm-linux-gnueabi is not compiled? My project compiles, so I don't
 think this is an issue with the compiler.



 I'm using a 32 bit system and trying to follow these tutorials to start a
 project
 http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-for-c-development/
 http://www.michaelhleonard.com/cross-compile-for-beaglebone-black/#for-linux


 Thanks,




 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [beagleboard] Re: Program C++ through putty using VI (Library installations needed?)

2013-11-11 Thread Toan Pham
 I was wondering if it is possible to write a c/c++ code in vi through SSH on 
 Putty and then generate an output file and run directly on the beaglebone?

Yes, if your program is simple (small), this is the easiest approach
since you dont have to setup a cross development environment.

I used the code by Derek Molley on his website: That uses FILE,
fopen, fclose, sleep, NULL,  etc. I'm getting errors about these.
Am I supposed to install some kind of libraries or a arm-gnueabi
compiler before I try to run programs that access the GPIOs and the
LEDs ?

make sure you use glibc stdio library.  AFAIK, everything on the
beagleboard is memory mapped; but if you ever need to io access, make
sure you use ioperm to request io access permission, and outb or inb
to write and read from io address.  Do, if you compile on the board,
you do not to install a cross compiler.


 Also is there a better OS than Angstrom for beginners on BBB? How is the Ti 
 SDK?

Angstrom distro comes with a package manager already, use opkg command
to install and search for packages.  I, however, have a custom
distribution that i geared for embedded, industrial application, it is
harder to develop on it because it does not come with a package
manager.





On Mon, Nov 11, 2013 at 8:05 AM,  tee.ef...@gmail.com wrote:
 hello siddharth,

 Personally I prefers nano than vi to write code, but this doesn't change a
 lot and it's possible to write code this way.

 Perhaps you could show us your error messages, this could help.

 Le lundi 11 novembre 2013 08:12:59 UTC+1, siddharth...@gmail.com a écrit :

 I was wondering if it is possible to write a c/c++ code in vi through SSH
 on Putty and then generate an output file and run directly on the
 beaglebone?
 I tried the simple helloworld.c program and it worked.
 But I tried to write LED blink program and I'm getting error messages.

 I used the code by Derek Molley on his website: That uses FILE, fopen,
 fclose, sleep, NULL,  etc. I'm getting errors about these.
 Am I supposed to install some kind of libraries or a arm-gnueabi compiler
 before I try to run programs that access the GPIOs and the LEDs ?

 Please also let me know the commands for installing the needed packages or
 an example LED code that would work this way.

 Also is there a better OS than Angstrom for beginners on BBB? How is the
 Ti SDK?

 Thank you

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.