Opened 3 years ago

Closed 3 years ago

#11238 closed defect (fixed)

Scratch activity has binary x86 plugins, cannot load Camera/WeDo/etc. support on XO-1.75 ARM

Reported by: greenfeld Owned by: godiard
Priority: normal Milestone: 1.75-software
Component: scratch-activity Version: Development build as of this date
Keywords: 11.3.0 Cc: erikos
Blocked By: Blocking:
Deployments affected: Action Needed: test in build
Verified: no

Description

  1. Start the Scratch activity in 11.3.0 os4 on an XO-1.75.
  2. Switch to the "Costumes" tab.
  3. Click the "Camera" button.

Expected: We see a live picture from the XO's camera (although on an XO-1.5 this is extremely dithered and potentially off-color).

Actual: The camera never turns on. Exiting Scratch and using the Record activity the camera turns on successfully.

Attachments (2)

scratch-activity (1.1 KB) - added by godiard 3 years ago.
NEWS (2.0 KB) - added by godiard 3 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 3 years ago by greenfeld

It looks like this is due to mixed packaging.

The CameraPlugin, WeDoPlugin, and all the other "*Plugin"'s are x86 binary libraries, and Scratch reports it cannot load them on ARM.

comment:2 Changed 3 years ago by greenfeld

  • Summary changed from Scratch activity cannot use camera on 1.75 while Record activity can to Scratch activity has binary x86 plugins, cannot load Camera/WeDo/etc. support on XO-1.75 ARM

comment:3 Changed 3 years ago by martin.langhoff

  • Owner changed from Quozl to gonzalo

comment:4 Changed 3 years ago by godiard

  • Owner changed from gonzalo to godiard

comment:5 Changed 3 years ago by godiard

  • Action Needed changed from diagnose to review
  • Cc erikos added

A xo with binaries for arm is here http://dev.laptop.org/~gonzalo/Scratch-20.xo

The only change I did are:

  • Moved the actual plugin binaries to plugins/i686/
  • Added the binaries to arm in plugins/arm/
  • Modified the file bin/scratch-activity to look at the proper binaries.

comment:6 Changed 3 years ago by erikos

Thanks Gonzalo for your great work!

A few observations:

  • export PLUGINS_PATH=/home/olpc/Activities/Scratch.activity/plugins/$ARCH/ would be great if that would be based on $HOME
  • a few lines above "cp -r $SQUEAKVM $HOME/Activities/Scratch.activity/bin" this should be '/home/olpc/Activities...', a few lines above we define "HOME=$SUGAR_ACTIVITY_ROOT/data"
  • please update the News file, our only way to know what has changed

comment:7 Changed 3 years ago by godiard

I asked to Bert, and he replied:

We can't see why is needed copy the squeak vm, in fact commenting the cp line
scratch works ok. May be this was needed when rainbow was used?

Can't imagine why this copy would be needed.

Can you confirm me if this is not needed anymore?

My original script did not copy the vm. Should be safe to remove.

  • Bert -

Then i have removed the cp line and used the HOME variable.

Attached is a updated scratch-activity and NEWS files.

Changed 3 years ago by godiard

Changed 3 years ago by godiard

comment:8 Changed 3 years ago by godiard

  • Action Needed changed from review to add to build

New bundle is available here: http://dev.laptop.org/~gonzalo/Scratch-20.xo

The camera need the package libv4l-devel. I have filled a ticket #11319 to include this package, but may be can be solved compiling the plugin with other parameters.

comment:9 Changed 3 years ago by dsd

  • Action Needed changed from add to build to test in build

Gonzalo replaced the Scratch-20.xo file at that URL to include the #11319 fix too, and that is now included in 11.3.0 candidate build 882. Test!

comment:10 Changed 3 years ago by erikos

Works fine for me in os883.

comment:11 Changed 3 years ago by dsd

  • Resolution set to fixed
  • Status changed from new to closed

camera works on on Scratch-20 on 11.3.0 build 882 on XO-1.75

Note: See TracTickets for help on using tickets.