element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
GIZMO 2
  • Products
  • Dev Tools
  • Single-Board Computers
  • GIZMO 2
  • More
  • Cancel
GIZMO 2
Forum Gizmo2 connecting peripherals: searching issues solution
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join GIZMO 2 to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 24 replies
  • Answers 2 answers
  • Subscribers 11 subscribers
  • Views 3711 views
  • Users 0 members are here
  • debian
  • peripherals
  • Ubuntu
  • ssd
  • issues
  • firmware_problems
  • gizmo2
  • external_hdd
  • boot_problems
  • bios_problems
  • sata
  • linux
Related

Gizmo2 connecting peripherals: searching issues solution

balearicdynamics
balearicdynamics over 10 years ago

The scenario

I am working on a project where I need to "evolve" several Gizmo2 board to make them specialised for some tasks. In short words the rules are the following

 

  • Desk unit : This is the most simple model; it will include a series of peripheral devices, a small case (fit back to a HDMI monitor) and an internal 60 Gb SSD disk with the entire system onboard. The provided application will be web based and the operating system will be Ununtu 14 LT, this means the entire system is 100% open source. The Gizmo2 is connected to a 1Gb switch and is part of an independent node of a local network.
  • Server unit: This is a single gizmo2 module that will be setup in a small expandable cluster. It should host a ssd internal disk for Linux operating system and a 500 Gb or 1 Tb external HDD for databa storage

 

All the machines are on the same LAN with 1Gb network

The Server unit will be clustered if needed with other self-balancing network devices

The machine external HDD machines will use the two USB3 Gizmo2 as dual raid hdd storage. USB3 has almost the same access speed than the SATA bus.

The machine will use eventually the external HDD connected to the on-board second sata port.

The machine is powered by a 4000 mA power supply giving the extra-power needed for the attached peripherals.

image

The second SATA connector and the SATA 5V power cables

 

Inside this scenario (if needed images are also available) I experience some issues that seems very probably hardware-dependent. What I need is some good check advices to verify for sure the issues causes.

 

Need to use components

The external parts that should be used are the following (for various kind of settings:

 

External 500 Gb 2.5" HDD (5V)

For now it is used a 1Tb 5" 12V + 5V HDD externally powered that will be replaced in the definitive configuration with the specific hardware. The difference in this case is meaningless Two disks will be connected to the USB3 via a SATA to USB3 converter that reaches a comparable speed. The following image shows the HDD connected in this way with an external powered dock.

image

 

mPCIe board with Parallel + serial interface

This is a micro PCIe board that has the same connector as the micro SATA. The board should be installed in the Gizmo2 bottom connector; as explained in the documentation the system will recognise automatically if the connector is used for mPCIe or mSATA with SSD drive connected.

image

 

32Gb microSD with linux boot only for emergency recovery

It has been used a class10 microSD card, 32 Gb. Both tests with Ubuntu and Debian installation has completed successfully but it is not possible to boot. Debian just stops on the black and white screen with the Booting from Hard Disk message while Ubuntu shows the grub and every try to start reboot the system.

 

SSD disk starting from the secondary SATA

The secondary SATA should host the operating system when the primary SSD connector (on the back side of the Gizmo2) is used as microPCI instead of microSATA The image below shows the board mounted on the mSATA to SATA adapter board.

image

 

Experienced issues

The following are the blocking issues found during some days of tests.

 

  1. Installing the OS on the microSD : all the installation process works fine with Ubuntu only, then at the end of process it is required the first reboot. The system boots and the only thing shown on the screen is "Booting from HD" then the system does not goes ahead.
  2. Installing the OS on the external HDD (both Debian and Ubutu): same as 1)
  3. The only way until now I was able to install Linux Ubuntu 14 was on the internal SSD (120 Gb) that boot fine after installation without any issue.

 

Problems with the two SATA ports

The second SATA port is on the board (thanks again to for her precious previous tests and shared knowledge !!!) and it is not populated. As the documentation explain it is a second port, we should expect that it can work with the first one connected. Instead:

 

A. With a 120Gb SSD on the first mSATA and any kind of SSD or HDD connected to the second SATA port as explained above none of the two disks are saw at boot time (only the micro SD if present).

B. With the mPCIe adapter (Serial + Parallel) in the primary port and the HDD on the SATA port, it is saw but does not work correctly. Instead with the SSD connected to the SATA (second port) it is not saw at all at boot time.

C. As the SSD or MPICEe boards are removed from the bottom connector, the SATA disk is saw correctly. Only the HDD can be connected and the operating system installed as well.

D. Only if the 120 Gb SSD is connected to the bottom port can be formatted and the operating system installed correctly.

 

Problems with OS booting

The same Linux OS has been installed with success on the external HDD (via the second SATA connection and external power), the microSD and the SSD (connected on the bottom connector). The only installation version that boots correctly is when the ssd is in its place and nothing else is connected to the system. The only accepted second HDD is when it is connected to the USB3 via the SATA to USB3 dock.

 

After booting from the Ubuntu desktop surprisingly all the linux installations on the three different media are virtually identical, despite that does not boot or boot partially, as shown in the images below:

image

 

The only possible bootable configuration

The only possible bootable configuration is from the SSD on the bottom connector with the external HDD connected to the USB3 port.

 

I hope that someone has some new idea to solve the problem, suggestions etc.

 

Thanks in advance. Enrico

  • Sign in to reply
  • Cancel

Top Replies

  • balearicdynamics
    balearicdynamics over 10 years ago in reply to clem57 +1
    Thank you Clem, I will check it in detail, there are lot of information BTW How much do you bet that is a firmware / bios problem ? Enrico
Parents
  • clem57
    0 clem57 over 10 years ago

    Try NOAPIC on boot line since that may be the problem.

    C

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 10 years ago in reply to clem57

    Hey Clem,

     

    thank you image How can I reach the boot line ? it seems there is no way, only F12 (when it work) on the SAGE boot screen to select the boot device.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to Former Member

    Heya Lucie ! Happy to see you image

     

    The basics are that a bit of magic is needed to get sdcards to boot. If theyre flashed with a cd image then they act like a cd would and boot in the same way. If you want to use them as a system drive, you need to remove and rewrite a new partition table replicating the cylinder/sector layout of a bootable system disk (they werent ever meant to be used as flexibly as they are these days.. the partition structure is even different to usb drives.) once thats done, you need to make a small primary partition around 32MB usually and format it as fat 16 and set it's type to 'boot'. This can all be done in gparted.

    Probably I have already done this. I followed the sparse and incomplete instructions on timesys.com . Mi intial assumption was that when the Gizmo2 arrived there was a 4 Gb only sd card with a very crap Linux on it. But the microSD was booting. So starting from this point I have done the following actions on Ubuntu 14.04LTS (in order):

    1. Formatted the entire microSD as the usual FAT32 and installed the mbr.bin file on it.
    2. Created the primary partition of 50 Mb for booting then installed the syslinux
    3. Added the kernel image
    4. formatted the remaining free space (used a 32 Gb microSD class 10) of type ext4
    5. Added the other needed stuff for the linux booting

     

    The first time I have not set manually the mbr.bin file and the card was saw at boot but nothing booting. Instead after I have added the mbr.bin it started. The linux kernel and image was from timesys that are the guys that seems supporting a good (???) Linux. They distribute for download the development kit and toolchain for their Linux as minimal Gizmo2 starting point (linked, but need to be registered for free to access to this area). Then - in theory - the game is simple (as the points above image) just if there was not a lot of incongruences in their Getting started guidehttps://linuxlink.timesys.com/docs/gsg/gizmo_2 (this link maybe accessible without login, just to have an idea).

     

    Then after solving the issues the microSD finally started. And was a delusion! It is an absolutely reduced linux with the busybox and many extra commands in the /bin and /sbin folders but it is needed a depth SDK study to see what can be really done with this system. The point is that it is impossible to manage - almost - as it needs so much time to boot (totally about 2 minutes to be logged in.

    Obviously there is not any track of web browser, web server or database and so on. So it is almost impossible to make a server for simple. I deserve this point to have a more clear view as I read the SDK documentation (included n the SDK itself, most text-only).

     

    important: take in account that this way has been just to try what happens when booting with their Linux OS from their privileged boot medium. After boot the internal SSD can be saw correctly, later I will add external one and other test devices and see if the behaviour is the same as with the other installations I have mentioned.

     

    Your other assumption that terminates with

    you should have:

     

    32MB  fat16 /BOOT primary boot

    xxGB   ext2 /

    1.5GB  swap

    xxGB ext2 /DATA      (optional)

    I have already tested but making some tries, sure without a clear partitioning in mind so I should try again. The problem - if I am not wrong, but I will confirm you as I try again with your spec - is that excluding this case the microSD is not recognised if I add the other SSD or SATA disk or whatever else. But these was the first test and maybe that I have done some mistakes. So I will try them again.

     

    Just as last information, the strange that occur, the most strange, is that the same SSD that boots from the internal micro sata is not saw at all if a second SSD or HDD (with external power) is added to the SATA port. This is the very very strange fact. Consider that I have bought a power supply similar to the one provided with the Gizmo2 but with 4 Amp. And I have widely tested that with this power unit there are NOT power problems, as the hardware configuration that works runs without problems including the SATA Hard disk plus the WiFI big USB dongle plus mouse and keyboard plus an extra 15mm diameter cooler fan.

     

    Thank you for now, hope we can solve this issue soon. Enrico

     

    P.S. The actual server configuration that I figure, in the actual NON full-working condition is with two 2.5" 500 Mb HDD connected to the USB3 (the speed is almost the same of the SATA) and the interna SSD with the system and booting etc. all in a custom case connected to a 1Gb LAN. The two hard disk will be in raid 1 (full mirroring) and the OS will be Ubuntu 14.

    Actually the option to connect the microPCIe to the bottom of the board is a mirage. So at least for one use it is impossible.

     

    Again. E.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to balearicdynamics

    I'm just about to get finished for the night so I'm going to try and draw up a more intuitive block diagram than the one in the Gizmo2 schematic document. The Sata mSata, mPcie etc.. have been over simplified, I managed to get a clear picture by following the connection references forwards and backwards throughout the schematic document and think I've pretty much worked most of it out. Once it's drawn out, I think it might help with understanding the issues you have been having with the SATA drives and help find a solution.

     

    The whole bootable SD card thing well!! what can you expect lol! Obviously they came out with recommended partition structures but when your camcorder company needs to get into the digital age to stay competetive then just replacing the old tape i/o controller with a relatively simple controller that can stream that same data onto an mmc/sdcard using the inbuilt low level write commands of the card then it's a winner!! plus it's much more realistic to do video processing on a pc that has the power to do that kind of work, obviously through the cameras own interface cos the card isn't gonna be recognizable by anything else!! they became so versatile that a partition system wasn't always needed at all!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to Former Member

    image So slow @@@#@!!!???

     

    The whole bootable SD card thing well!! what can you expect lol! Obviously they came out with recommended partition structures but when your camcorder company needs to get into the digital age to stay competetive then just replacing the old tape i/o controller with a relatively simple controller that can stream that same data onto an mmc/sdcard using the inbuilt low level write commands of the card then it's a winner!! plus it's much more realistic to do video processing on a pc that has the power to do that kind of work, obviously through the cameras own interface cos the card isn't gonna be recognizable by anything else!! they became so versatile that a partition system wasn't always needed at all!

     

    Ok, got the message. haha. Waiting your schematic then like to discuss it. Damn SBC !

     

    Cheers. Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to balearicdynamics

    hi, i am on with this but keep getting sidetracked.. ive worked my way through the amd datasheet for the processor too.

     

    A quick bit to help along until i get back home on sunday..

     

    The sata ports on the amd soc dont have a ssd interface only a standard sata one. gizmo2 has its own signal converter to manage this which is only capable of supporting ssd drives up to 64GB.

     

    There are only 2 ssd interfaces to the soc, each is capable of supporting 2 sata drives provided an external signal muxer is used, there arent any devices that i can find on gizmo 2 that do this directly for the sata buses so you can only use either the msata/mpcie or the sata header that you soldered on.. not both at once. there is a device on there with this potential but its been used in a reverse configuration to select between whether data from the msata port goes to the pci bus or to the sata bus.

     

    This also means that the sata port on the side doesnt work with ssd drives and unless an external ic is used, only 1 drive can go into there.

     

    I wont have chance to post more until sunday but i might make a blog video talking through some of it...

     

    as a point of interest, the soc is capable of supporting up to 8GB ddr3.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to Former Member

    Hi Lucie,

     

    always great, so I don't spend time in comlpiments image

     

    The sata ports on the amd soc dont have a ssd interface only a standard sata one. gizmo2 has its own signal converter to manage this which is only capable of supporting ssd drives up to 64GB.

    As usual maybe that the guys that write the documentation rarely speak with the guys that design hardware image I have put a 120Gb SSD on the board mSATA/mPCIe connector and this is one of the configuration that works fine. I have tried installing Windows 8 embedded and Ubuntu 12 and 14LT and all worked fine using the entire disk. But this is a marginal detail. Anyway I have read nowhere about these limitations and this is a big lack of information I think.


     

    you can only use either the msata/mpcie or the sata header that you soldered on.. not both at once.

     


    Instead unfortunately this is sadly true image Also in this case there is nothing explicitly mentioning this aspect. But I suspect that the reason that the second SATA connector is not populated is just because should be saw as an alternative to the first one. Ok, so the more comfortable and working server solution will be with the OS on the SSD on the bottom of the board and two RAID HDD connected SATA -to-USB3 that has almost the same data transfer speed.


     

    This also means that the sata port on the side doesnt work with ssd drives and unless an external ic is used, only 1 drive can go into there.

     


    This is another useful information. As a matter of fact this is the reason that the connector should be SATA and not mSATA. Not a big problem; I have tried using 1TB sata HDD connected there and a SSD inside a mSATA to SATA connector and only the HDD was working. So not only it does not support SSD but also does not support the SATA SSD. No SSD At all.


     

    as a point of interest, the soc is capable of supporting up to 8GB ddr3.

     


    This is a good news and bad news. I don't know why but AFAIK the Gizmosphere documentation says that the max supported is 2GB (or 4 in some cases). This maybe a limit imposed by the board design so can't be changed. Anyway I have not the needed tools to try to replace the soldered memory to other chip. And Linux works well with 1 Gb. Especially with a system that is headless. In the case of the desktop version I think that there are not problems too because the application is essentially 90% browser based.


    Thank you for this update, you have got me a series of stable points that make clear the confusion arisen by the tests.


    Cheers. Enrico


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to Former Member

    where i said 2 ssd interfaces to the soc, i meant sata

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to Former Member

    It was anyway clear image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to Former Member

    much of the issues are the configuration of the board, other configurations are possible but they had to make a choice between which features are  est for their target market.

     

    I have found an alternative to the gizmo that has the same soc but is largely unpopulated, everything comes out to connectors so you can add your own supporting hardware, im interested in trying it out since comes with an so-dimm socket for adding your own memory.. in contrast the gizmo2 is a ready to go off the shelf part.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to Former Member

    Very interesting ! Do you have a link or a name ?

     

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to balearicdynamics

    I downloaded the product guide but its at home and i wont back back until sunday, its effectively just the soc broken out into connectors, they offer the same as the gizmo 2 which is one of the power range devices up to a quadcore device with a few extra features

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 9 years ago in reply to balearicdynamics

    I downloaded the product guide but its at home and i wont back back until sunday, its effectively just the soc broken out into connectors, they offer the same as the gizmo 2 which is one of the power range devices up to a quadcore device with a few extra features

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to Former Member

    Great! Thank you for your support. Wait until you can send some more info.

     

    Cheers. Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube